2008/08/31

View only configuration lines ( uncomment lines )

Linux configuration files using comment and uncomment lines ( # )
and sometimes we don't need the comment lines, we only need the uncomment lines ( usable configuration files )

here is the script to view only configuration lines / uncommment lines
example squid.conf
superkayak # cat /etc/squid/squid.conf.default | grep -v "^#" | sed '/^$/d'

No comments: