ubuntu:file:print_uncommented_lines_of_a_file
This is an old revision of the document!
Ubuntu - File - Print 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/print_uncommented_lines_of_a_file.1574889985.txt.gz · Last modified: 2020/07/15 09:30 (external edit)