Skip to content

Instantly share code, notes, and snippets.

@larsxschneider
Created January 17, 2018 16:09
Show Gist options
  • Save larsxschneider/ea146e69b23387a04ddd3f4f53c0b2ab to your computer and use it in GitHub Desktop.
Save larsxschneider/ea146e69b23387a04ddd3f4f53c0b2ab to your computer and use it in GitHub Desktop.
Print directory sizes in a Git repo
find . -type d -not -path './.git/*' -print0 | while IFS= read -r -d '' i ; do echo "$(ls -l "$i" | wc -l) $i"; done | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment