ubuntu:file:display_uncommented_lines_of_a_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:file:display_uncommented_lines_of_a_file [2020/07/15 09:30] – external edit 127.0.0.1 | ubuntu:file:display_uncommented_lines_of_a_file [2022/06/13 11:14] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - File - Display uncommented lines of a file ====== | ||
- | |||
- | To list only the uncommented lines of a file: | ||
- | |||
- | <code bash> | ||
- | grep -v ^# file.conf | grep -v ^$ | ||
- | </ | ||
- | |||
- | where: | ||
- | |||
- | * **" | ||
- | * **" | ||
- | |||
ubuntu/file/display_uncommented_lines_of_a_file.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1