Want to resize a directory of pictures? Try this one liner: for file in *; do convert -scale 1024x768 $file resized_$file; done