ubuntu:file:display_uncommented_lines_of_a_file
This is an old revision of the document!
Ubuntu - File - Display uncommented lines of a file
To list only the uncommented lines of a file:
grep -v ^# file.conf | grep -v ^$
where:
- “grep -v ^#“ means list out everything that do not start with #.
- “grep -v ^$” means list out everything that do not start with blank space.
ubuntu/file/display_uncommented_lines_of_a_file.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1