User Tools

Site Tools


awk:delete_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
awk:delete_all_blank_lines_from_a_file [2020/09/23 15:51] – created 192.168.1.1awk:delete_all_blank_lines_from_a_file [2021/01/06 16:15] (current) peter
Line 11: Line 11:
 </code> </code>
  
 +----
  
 +===== Example =====
 +
 +Assuming a file, **file.txt**, exists with the following contents:
 +
 +<file bash file.txt>
 +aaaaa
 +bbbbb
 +
 +ccccc
 +
 +
 +
 +ddddd
 +
 +eeeee
 +</file>
 +
 +returns:
 +
 +<code bash>
 +aaaaa
 +bbbbb
 +ccccc
 +ddddd
 +eeeee
 +</code>
awk/delete_all_blank_lines_from_a_file.1600876291.txt.gz · Last modified: 2020/09/23 15:51 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki