grep

say it: “GREP” /ˈɡrɛp/

Searches text for lines matching a pattern.

What does grep do?

grep searches text for lines that match a pattern. -i ignores case; -r searches every file in a folder.

grep "error" app.log
grep -ri "todo" src/

Level: Apprentice · More Unix terms at this level

Updated