Random Tech Thoughts

The title above is not random

Find

Use regular expression to specify file pattern

find .  -regex 'pattern'

Don’t forget to single quote pattern to preven shell substitute.

Use -regextype to specify regular express type. Default is emacs.

Operators (AND, OR)

  • -or OR
  • -and AND
  • ! NOT
  • ( expr ) Force precedence

Limit depth

-maxdepth <num>