User Tools

Site Tools


linux:sed:remove_all_blank_lines_from_a_file

Differences

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

Link to this comparison view

Next revision
Previous revision
linux:sed:remove_all_blank_lines_from_a_file [2019/12/10 10:34] – created peterlinux:sed:remove_all_blank_lines_from_a_file [2019/12/10 10:49] (current) – removed peter
Line 1: Line 1:
-====== Linux - SED - Remove all blank lines from a file ====== 
- 
-<code bash> 
-cat /etc/somefile.conf | sed '/^$/d' > /tmp/output.file 
-</code> 
  
linux/sed/remove_all_blank_lines_from_a_file.1575974051.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki