Thursday, 1 October 2009

Get the count of files of a specific file type

To know the count of files of a particular type in a directory

         ~$ find . -name “*.png” | wc -l
         ~$ find /usr/share/images/ “*.jpg” | wc -l

No comments:

Post a Comment