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

All searching and text commands · Bash and Linux 5 cheatsheet

Was this page helpful?