Sysadmin Notebook
Sunday 22 May 2011
HOWTO Remove comments and blank lines in a config file
egrep -v '^$|^\s*#' configfile
^$ - matches the empty lines
^\s*# - matches lines that start with a #
Possibly Related Posts
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment