(Bash) Specify depth to `find`

  • Use -mindepth A to recurse at least A levels
  • Use -maxdepth B to recurse at most B levels
  • Both can be specified simultaneously, with A <= B

References:

Written on May 18, 2021