grep
0%

Text-Fu · Lesson 16

grep

Learn how to select lines with fixed strings or regular expressions and interpret grep results.

The grep command selects input lines that match a pattern. It can search named files or stdin, print matching context, count selected lines, and communicate whether a match was found through its exit status.