Last active
August 29, 2015 14:01
-
-
Save jackbrown/56f17125b787471a5ef2 to your computer and use it in GitHub Desktop.
Command for counting the number of images in a directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get a list of all images in a directory and its child directories | |
find . -type f -name *.gif -o -name *.jpg -o -name *.bmp -o -name *.jpeg -o -name *.png | |
Get a count of all images in a directory and its child directories | |
find . -type f -name *.gif -o -name *.jpg -o -name *.bmp -o -name *.jpeg -o -name *.png | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment