I\'m trying to write script that\'ll crop and resize large photos into HD Wallpapers.
#! /bin/bash for i in `ls *.jpg` do width=`identify -format \'%w
Use double quotes around file names. Like this:
width=`identify -format '%w' "$i"`
Please note the double quotes around "$i".
"$i"