1

I dont want to exit the program by ctrl + c

view story
linux-howto

http://www.unix.com – Hey , guys I am new to shell programing ,, so need a help from you guys ... I have to write a shell script that accepts file name or directory name from the user if it is a directory then throw an error if it is a file then give the user two options . 1.overwrite the content 2.append the content Here is my program .. echo " Enter the File name or Directory name"read fnameif test -d $fname # we are checking fname is a directory or notthen # if it is a directory echo " Please enter a file Not a directory "elseecho " 1. Overwrite the contents of $fname "echo &q (HowTos)