User Tools

Site Tools


ubuntu:file:print_uncommented_lines_of_a_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ubuntu:file:print_uncommented_lines_of_a_file [2019/11/27 21:26] – created peterubuntu:file:print_uncommented_lines_of_a_file [2019/12/15 20:01] (current) – removed peter
Line 1: Line 1:
-====== Ubuntu - File - Print uncommented lines of a file ====== 
- 
-To list only the uncommented lines of a file: 
- 
-<code bash> 
-grep -v ^# file.conf | grep -v ^$ 
-</code> 
- 
-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)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki