WeCodeAcademy
❮ grep -igrep -v ❯

grep -c

Counts matching lines.

Group: Searching

Syntax

grep -c pattern file

Example

Examplebash
Open in editor »
/ $

← All of Bash Command Reference