Remove comments and empty lines with grep

Remove comments and empty lines with grep
$ grep -v -e ^# -e ^$ file.txt

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.