#!/bin/bash # quickie example of an if statement using the -e test # to see if the given argument is the name of an # existing file before trying to call cat with it # by: Sharon Tuttle # last modified: 10-10-12 if [ -e $1 ] then cat $1 else echo "NO SUCH FILE" fi