# find(1) ``` find [opts] -maxdepth maximally search n dirs deep -type match on file type f regular file d directory -user list files owned by username -name list files matching glob (only filename) -iname list files matching glob case-insensitive -exec {} ; run cmd on each file -exec {} + run cmd with all files as argument ``` > Depending on the shell the `` must be quoted or escaped. The > exec modifier characters `;` and `+` also may need to be escaped. ### Example `-exec` option ```sh > find . -maxdepth 1 -type d -exec echo x {} \; # x . # x ./.github # x ./book # x ./src # x ./.git # x ./docs > find . -maxdepth 1 -type d -exec echo x {} + # x . ./.github ./book ./src ./.git ./docs ```