List file content, a neat Linux command, part 2

How to list content of a file, but only that part which is not comments (in Linux comments always start with “#”), and to eliminate blank lines in the stdout (where comments used to be) :

# less ime.fajla | grep -v “#” | grep -v ‘^$’

This entry was posted in Linux and tagged , . Bookmark the permalink.

Comments are closed.