Skip to content

Instantly share code, notes, and snippets.

@synackme
Created February 6, 2014 01:29
Show Gist options
  • Save synackme/8836860 to your computer and use it in GitHub Desktop.
Save synackme/8836860 to your computer and use it in GitHub Desktop.
cat a file & pipe to egrep to remove lines
grep -v \# foo.txt | egrep '^$' -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment