UNIX

cat a file and remove comments and blank lines

$ cat file.txt | grep -v “#” | grep -v “^$”

Share