Created
September 12, 2017 08:02
-
-
Save putarpuar/b772f2955207d183cadd8fac79b4e929 to your computer and use it in GitHub Desktop.
Delete Comments in Textfiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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