BASH script to rotate and concatenate pdf files