Bash and Linux 5 · Searching and text
Search file contents
Search a folder recursively and show file names and line numbers.
grep -rn "TODO" .
Official Bash and Linux 5 documentation
More searching and text commands
- Find files by name
- Find files changed recently
- Count lines
- Count duplicate lines
- Replace text in a file
- Print one column
All searching and text commands · Bash and Linux 5 cheatsheet