User Tools

Site Tools


sed:remove_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
sed:remove_blank_lines_from_a_file [2019/12/10 10:50] – created petersed:remove_blank_lines_from_a_file [2020/08/16 11:21] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== SED - Remove blank lines from a file ====== 
- 
-<code bash> 
-cat input.txt | sed '/^$/d' > /tmp/output.file 
-</code> 
- 
----- 
- 
  
sed/remove_blank_lines_from_a_file.1575975032.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki