Convert many jpg files

$ vi conv.sh <enter>

Insert
for i in $(ls *.jpg); do
convert -geometry 120x120! -compress jpeg -quality 50 $i $i.cjpg -bordercolor blue
done

:wq

Set the above batch file to executable:
$ chmod u+x conv.sh <enter>

To execute the program:
$ ./conv.sh <enter>