Belajar Sendiri

Commands

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 -l

How many unpaid orders?