February 2009
5 posts
2 tags
Count files in subdirectories
find . -type f -print | awk '{ FS="/"; print $2; }' | uniq -c | sort -n
There’s not an easy way (as far as I know) to get a summary of how many files are in each subdirectory of a given parent directory, so I came up with this one-liner.
Customer: ‘You’re part computer?’
Me: ‘Yes sir, I am a...
– Not Always Right. I always wanted to say something like this when I worked tech support.
Flickr: The Far side Reenactments Pool →
by way of Jeff Atwood.
I LEGO N.Y. - Abstract City Blog - NYTimes.com →
A few lego bricks can illustrate the world. By way of my mom(!).
Flickr: In Numerical Order →
Number-themed pictures posted in numerical order. Something greater than or equal to 1512 is next.