1 [ "$1" = "-n" ] && n_empty
=1 && shift
4 #echo $DIR - if param then print files
5 find -mindepth 1 -maxdepth 1 -type d |
sort | \
7 if [ -z "$n_empty" ]; then
8 (cd $DIR && find -type f
-name "*.$EXT") |
xargs echo $DIR
10 (cd $DIR && find -type f
-name "*.$EXT") |
xargs -r echo $DIR