Ever wanted to have a mean squid.conf file?
How neat it may look if U get rid of all that comments of # marks
Yeah I found out an easier way with grep command
Infact I wanted to do it with awk which I am trying to learn but found the command worked on linux wont work in FreeBSD
So went back not shell commands and grep was there to save the day
#grep -v ^# /usr/local/etc/squid/squid.conf | grep -v ^$
Must get you the filtered squid configuration file without all that commented lines
Enjoy
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment