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 #
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment