Skip to content

Instantly share code, notes, and snippets.

@gyfoster
Last active April 8, 2019 15:44
Show Gist options
  • Save gyfoster/bfa7bf8ce38999972ef46593d6665306 to your computer and use it in GitHub Desktop.
Save gyfoster/bfa7bf8ce38999972ef46593d6665306 to your computer and use it in GitHub Desktop.
A list of my most commonly used find commands
Find file (case-insensitive) with name beginning with "postgres" in current directory:
$ find . -iname postgres*
Find directory (case-insensitive) in filesystem with name "s2i":
$ sudo find / -type d -iname "s2i"
Find text within a set of files in current directory:
$ find . -iname *.java | xargs grep -i someTextToSearchFor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment