#!/bin/sh # rotating an image without changing its time-stamp # 2003/11/15 Kenlo Nishida # note: "rotjpg_" command is original of KN if [ $# -lt 1 ]; then echo "usage: $ rot_ filename.jpg"; fi rotjpg_ 90 <$1 >dummy.jpg touch -t `date -r $1 '+%Y%m%d%H%M.%S'` dummy.jpg mv dummy $1