Skip to content

Instantly share code, notes, and snippets.

@cnglish
Created June 29, 2019 06:43
Show Gist options
  • Save cnglish/8333985617fa0fcfeef9084739ec1586 to your computer and use it in GitHub Desktop.
Save cnglish/8333985617fa0fcfeef9084739ec1586 to your computer and use it in GitHub Desktop.
#!/bin/bash
dir="./"
dirs=`ls -l $dir | grep '^d' | awk '{print $9}'`
# printf "About to process following dirs: \n${dirs}"
for d in $dirs;
do
printf "Processing ${d}:"
cd $d; ls -al; cd -
printf "\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment