I'm trying to find all .png .jpg and .gif files in my directory. I'm getting the file sizes properly but unable to get image width (I'm using imagemagick) in log file.Script code #!/bin/bashfor d in ./*; do     echo listing contents of dir: $d;      find . -iname *.jpg -type f -exec identify -format '%w %h %i' '{}' \; | awk '$1<300 || $2<300'    find . \( -name *.jpg -or -name *.png  -or -name *.gif \) -size +120k -type f  -exec ls -lah {} \; > sandip-log.txt done
Find All images file size and width in directory
shell;shell script;files;imagemagick