Created
May 31, 2013 22:13
-
-
Save john-kurkowski/5688325 to your computer and use it in GitHub Desktop.
Group folders by number of files recursively within
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
ls > foo.txt | |
ls | parallel -j 1 'ls {}/**/*.* | wc -l' > bar.txt | |
paste foo.txt bar.txt | sort -t "<TAB>" -k2 -n # <TAB> = Ctrl+V, Tab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment