News for hackers. Stuff that matters.
Re:Unix Commands I Wish I’d Discovered Years Earlier by stormbrew on Tuesday September 10, 2013 @01:44PM (#6361600)
If you're dealing with a truly large number of files you could use "find . -type f -printf 1 | wc -c" which would just print a single character to the pipe and count the characters. I really doubt this is significantly slower than one program that does both would be. It'll do roughly the same amount of work.

There are no comments on this comment yet.