Spiffy sed command to clean up conf files


Posted: 2012-04-27 23:33:00   |  More posts about linux commands sed

Use the following sed command to clean up config files and remove all the comments and blank lines:

sed '/ *#/d; /^ *$/d'

blog comments powered by Disqus

Contents © 2012 Jeff Dickison