http://askubuntu.com/questions/238136/how-to-find-all-images-with-a-certain-pixel-size-using-commandline find . -iname "*.jpg" -type f -print | xargs -I{} identify -format '%w %h %i\n' {} | awk '$1=300' > ~/tmp/tmp.txt