for FILE in 'ls *.jpg'
do
convert -size 120x120 $FILE -resize 120x120 new_$FILE
done
and the errors I get are as follows
convert: Unable to open file (ls) [No such file or directory].
convert: Unable to open file (*.jpg) [No such file or directory].
Segmentation fault
Any help that can be provided would be greatly appreciated.