Display the contents of file 'filename' excluding lines starting with # or empty/space-only lines, waiting for user interaction after each page.
grep -v '^$\|^#\|^\s*\#' filename | grep -v "^[[:space:]]*$" | more