#!/bin/sh epeg -m 1800,1800 "$1" "$1_b.jpg" mv "$1" /tmp/ mv "$1_b.jpg" "$1"