Awk

From Blue-IT.org Wiki

Revision as of 19:37, 8 January 2012 by Apos (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

empty lines

count

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

remove

awk 'NF' file

see: [1]