#!/bin/sh # See pg 372 for file tests # -d exists and is a directory # -e exists and is any type of file # -f exixts in current directory # # # # # echo -n "Please enter a file in the current directory" read entered_file if test -f $entered_file then echo "Yes $entered_file is a file in the current directory" else echo "NO $entered_file is not a file in the current directory" exit 10 fi #