Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 259 Bytes

run-command-all-subdirectories.md

File metadata and controls

13 lines (10 loc) · 259 Bytes

Run command on all subdirectories

find . -type d -exec sh -c '( do-what-you-want-with {} )' \;

Where {} contains the directory path

Example:

find . -type d -exec sh -c '(cd "{}" && filenametodatetaken)' \;