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

Both sides previous revisionPrevious revision
linux:sed:remove_all_blank_lines_from_a_file [2019/12/10 10:43] 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 input.txt | sed '/^$/d' > /tmp/output.file 
-</code> 
- 
----- 
- 
  
linux/sed/remove_all_blank_lines_from_a_file.1575974586.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki