sed '/^$/d;/^\s*#/d' squid.conf Find many useful sed one-liners here http://student.northpark.edu/pemente/sed/sed1line.txt -- Andreas On lör, 2008-03-22 at 11:34 +0800, Wong wrote: > Need advise how to remove unused lines in squid.conf such as remarked > (commented) or no character lines, by using Linux utility (sed and strip?).