User Tools

Site Tools


sed:delete:delete_blank_lines

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
sed:delete:delete_blank_lines [2020/08/16 11:22] 192.168.1.1sed:delete:delete_blank_lines [2020/08/17 09:23] (current) 192.168.1.1
Line 1: Line 1:
 ====== SED - Delete - Delete blank lines ====== ====== SED - Delete - Delete blank lines ======
 +
 +Same as "grep '.' "
  
 <code bash> <code bash>
-sed '/^$/d'+sed '/^$/d'                           # method 1 
 +sed '/./!d'                           # method 2
 </code> </code>
  
sed/delete/delete_blank_lines.1597576968.txt.gz · Last modified: 2020/08/16 11:22 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki