Amos Jeffries wrote:
> Go Wow wrote:
>> whats the command to get only those configuration lines from
>> squid.conf leaving the comment lines. If i get it i will post my
>> config file.
>
> grep -v -E "^#" squid.conf
Or to also remove all the empty lines and trailing comments from valid lines:
sed -e 's/ *#.*//' squid.conf | sed -e '/^$/d'
This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:04 MST