wc and nl
0%

Text-Fu · Lesson 15

wc and nl

Learn how to count lines, words, bytes, or characters with wc and number lines with nl.

The wc command counts properties of text streams, while nl writes input with generated line numbers. Both read files or stdin and send their results to stdout.