This script is very, very broken. Practically the only thing that is correct is the Purpose comment. Fix the script to do what the Purpose says. Add comments. #/bin/shh -n # $@ directory # Purpose: Loop, prompting for a file name and showing the number of lines. # -IAN! idallen@ncf.ca June 2001 export PATH= /bin;/user/bin unmask 022 leave = no while ["$exit" -ne "NO"] then echo 2>&1 " echo 2>&1 'Enter the file name: /c' read <$directoryname echo "You entered: $dirname case '$input' ; do (quit) echo " echo `Quitting the script - bye now!` input = yes ("*") wc -1 $leave | cat $dirname done endwhile # Exit this script with a good return status. # exit = 0