Skip to content

Instantly share code, notes, and snippets.

@richardpeng
Created October 7, 2010 15:39
Show Gist options
  • Save richardpeng/615305 to your computer and use it in GitHub Desktop.
Save richardpeng/615305 to your computer and use it in GitHub Desktop.
# Prints the folder name number of files and folders in each subdirectory.
for i in *; do show="$i"; num=`ls "$i" | wc -l`; echo "$show: $num"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment