How Many Files in a Linux Directory
July 4, 2008
The following command will tell you how many files matching the *.csv pattern are in the current directory:
ls -1R | grep .*.csv | wc -l
1 Comment Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed
1. JD | September 5, 2009 at 12:37 am
Thank you.
Have been searching around for this command. You’ve helped me a lot.
Cheers bud.