cat a file and remove comments and blank lines

$ cat file.txt | grep -v "#" | grep -v "^$"

Leave a Reply

Your email address will not be published. Required fields are marked *