wc -l (sed, a stream editor)

From Get docs
Sed/docs/latest/wc- 002dl

Next: head, Previous: wc -w, Up: Examples   [Contents][Index]



7.14 Counting Lines

No strange things are done now, because sed gives us ‘wc -l’ functionality for free!!! Look:

#!/usr/bin/sed -nf
$=