#!/bin/sh for i in ASG_*.pdf; do pdftk A=$i shuffle AoddWest AevenEast output rotated_$i; done