← Command encyclopedia

grep

Search for lines matching a pattern.

Executable in the CoreQ simulator

Syntax

grep [-i] [-v] [-n] [-c] [-r] [-E] [-o] PATTERN [FILE...]

Practise it now in the Linux sandbox. Type man grep there for a quick summary.

Learn it in

Related commands

cattacrevnlheadtailwcsort