Count files in a directory under UNIX
September 19, 2009 (late afternoon)
Note to self:
A few ways to count files in a directory under UNIX:
ls | wc -l
For recursive:
find . -print | wc -l
Using filename matching:
find . -name \*.jpg -print | wc -l
You must be logged in to comment on this post (damn those spammers)
