#!/bin/bash if [[ -e $1 ]]; then pdf2ps "$1" && ps2pdf "$1" && printf "done" else printf "Error" fi