Skip to content

find (CLI)

find is a utility for finding stuff in your filesystem.

sh
man find

Useful recipes

sh
# Find all top-level node_modules folders in a monorepo
find -path '*node_modules' -type d ! -path '*node_modules*node_modules*'
sh
# Execute a command with everything you found, appending the matched file to the end of the command
find -exec <command> {} +

This work is licensed under CC BY-NC-ND 4.0