This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on: https://alvinalexander.com/unix/edu/examples/find.shtml | |
# basic 'find file' commands | |
# -------------------------- | |
find / -name foo.txt -type f -print # find regular files under / with name foo.txt | |
find / -name foo.txt -type f # -print is the default action, and may be omitted | |
find . -name foo.txt # search under the current dir, and all types | |
find . -name "foo*" -type d # wildcard name-matching, and only directories | |
find /opt /usr /var -name foo.scala -type f # search multiple dirs | |
find . -iname foo # case-insensitive: foo, Foo, FOo, FOO, etc. |