GNU grep example:$ grep -v "^#" /path/to/config/file$ grep -v "^#" /etc/apache2/apache2.conf
$ grep -v "^#" /path/to/config/file$ grep -v "^#" /etc/apache2/apache2.conf
GNU sed example:$ sed '/ *#/d; /^ *$/d' /path/to/file$ sed '/ *#/d; /^ *$/d' /etc/apache2/apache2.conf
$ sed '/ *#/d; /^ *$/d' /path/to/file$ sed '/ *#/d; /^ *$/d' /etc/apache2/apache2.conf
Post a Comment
No comments:
Post a Comment