Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # loop through all directories in $1 recursively
- for dir in $(find $1 -type d); do
- # do something with every file in $dir
- for file in $($dir/*); do
- # do stuff
- done
- done
Add Comment
Please, Sign In to add comment