Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -eu
- where="$1"
- IFS=$'\n'
- for subdir in $(find "$where" -maxdepth 1 -mindepth 1 -type d)
- do
- #echo --withdir "$subdir"
- # find files in $d and iterate over those
- for f in $(find "$subdir" -type f)
- do
- echo ----with file "$f"
- file "$f"
- done
- echo
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement