Difference between revisions of "Awk"

From Blue-IT.org Wiki

(Created page with "== empty lines == count awk 'NF{c++}END{print c}' file remove awk 'NF' file see: [http://ubuntuforums.org/showthread.php?t=1725917]")
 
 
Line 7: Line 7:
  
 
see: [http://ubuntuforums.org/showthread.php?t=1725917]
 
see: [http://ubuntuforums.org/showthread.php?t=1725917]
 +
 +
[[Category:Scripting]]

Latest revision as of 19:37, 8 January 2012

empty lines

count

awk 'NF{c++}END{print c}' file

remove

awk 'NF' file

see: [1]