Guest User

Untitled

a guest
Jun 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # loop through all directories in $1 recursively
  4. for dir in $(find $1 -type d); do
  5. # do something with every file in $dir
  6. for file in $($dir/*); do
  7. # do stuff
  8. done
  9. done
Add Comment
Please, Sign In to add comment