- Create this script on the directory of the Images
- Save the script as (for example) scriptdistribute.sh
- chmod a+x scriptdistribute.sh
- Run the script ./scriptdistribute.sh
#!/bin/bash
for image in *.jpg *.JPG *.jpeg *.JPEG *.gif *.GIF *.bmp *.BMP *.png *.PNG;
do res=$(identify -format %wx%h\\n "$image");
mkdir -p $res;
mv "$image" $res;
done
No comments:
Post a Comment