Skip to content

Instantly share code, notes, and snippets.

@izzygomez
Last active April 16, 2024 20:53
Show Gist options
  • Save izzygomez/0606a4e47c0017cd0702286ae15b54c2 to your computer and use it in GitHub Desktop.
Save izzygomez/0606a4e47c0017cd0702286ae15b54c2 to your computer and use it in GitHub Desktop.
`find`/`grep` usage for searching files

Quick find/grep usage notes for searching files on command line

  • grep -ri "string" . will do a case-insensitive search for "string" inside "."
  • find . -type f -iname '*pattern* will do a case-insensitive search for file names that match given pattern inside "."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment