IT Tidbits
Little tidbits of information I have picked up along the way...
Thursday, February 6, 2014
Conf File Clean Up
Quick method to remove all comments and empty lines from a conf file.
# grep -v "^#" /etc/example.conf | sed -e '/^$/d'
or
# cat /etc/example.conf | sed '/ *#/d; /^ *$/d'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment