#!/bin/bash if [ $# -ne 1 ]; then echo "Usage: $0 " exit 1 fi IMAGE_FILE=$1 convert "$IMAGE_FILE" -rotate 90 "$IMAGE_FILE"