wc -l
wc -l [file]
Risk: Safe
What it does
Counts lines (-l), words or bytes.
When to use it
At the end of a pipe, to count results.
Example
$ grep -i unpaid orders.log | wc -lHow many unpaid orders?
Learn it in: Pipes and redirects · Official docs