#!/bin/sh # -*- shell-script -*- if [ $# -lt 1 ] ; then echo "open-pdf file" exit fi if [[ -e `which evince` ]] ; then evince $1 else xpdf $1 fi