Skip to content

Instantly share code, notes, and snippets.

@putarpuar
Created September 12, 2017 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save putarpuar/b772f2955207d183cadd8fac79b4e929 to your computer and use it in GitHub Desktop.
Save putarpuar/b772f2955207d183cadd8fac79b4e929 to your computer and use it in GitHub Desktop.
Delete Comments in Textfiles
cat /etc/squid/squid.conf | egrep -v "(^#.*|^$)"
egrep -v means leave the following out
^#.* means patterns that begin with a #
| means or
^$ means patterns that are empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment