#!/bin/sh if test -f $1 then ISFILE=1 else ISFILE=0 fi echo $ISFILE #CSC128: Shell Script Examples - Test for a regular file