#!/bin/bash #here is an example of testing to see if a file exists echo please enter a file name read filename if test -e $filename then echo yes it is there else echo sorry not found fi