# I do not recommend anymore to use the line below since it seems to destroy the EXIF-data. # I don't know why since it is pretty similar to the example from the manpage. #!/bin/bash for i ; do jpegtran -copy all -rotate 270 "$i" > "$i"_; rm -f "$i";mv "$i"_ "$i";done