To show only the uncommented line for file.conf (this is for the configuration files that use # as comment) :
- $ grep -v ^# file.conf | grep -v ^$
- "grep -v ^#" means list out everything that do not start with #
- "grep -v ^$" means list out everything that do not start with blank space
No comments:
Post a Comment