Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save unabridgedxcrpt/f7a02410d802852757cda1d0b21fa538 to your computer and use it in GitHub Desktop.
Save unabridgedxcrpt/f7a02410d802852757cda1d0b21fa538 to your computer and use it in GitHub Desktop.
# In a list of files and folders with folders ending with /, count the number of folders below each 3-levels-deep subdirs. Helps determine where things are organized the most.
# find . -type d -exec ls -dF "{}" \; >>filefolderlist.txt
grep "/$" filefolderlist.txt | cut -d/ -f1-3 | sort | uniq -c
# https://twitter.com/climagic/status/1122941154222325766
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment