Skip to content

Instantly share code, notes, and snippets.

@mikelikesbikes
Last active December 21, 2015 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikelikesbikes/6258525 to your computer and use it in GitHub Desktop.
Save mikelikesbikes/6258525 to your computer and use it in GitHub Desktop.
File counts for directories in your path
arr=`echo $PATH | tr ':' '\n'`;
for path in ${arr[*]}; do
printf "%5s %s\n" `ls $path | wc -l` $path
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment