Search recursively in a directory
Searches every file under the directory, skipping binary files, and prints matches with file name and line number.
grep -rnI "pattern" .Edit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/grep.md), licensed under CC BY 4.0.