[SunHELP] Sun Script

Vishal vishal at netsolutionsindia.net
Wed Apr 28 13:49:43 CDT 2004

Hello All,

I would like to have the follwing script :

Write a UNIX shell script that will prompt the user with information to
enter the
Letter "d", "o" or "s" to execute the command as follows:
d - to list the contents of directory in long format.
o - <name> to check if a file <name> is in the current directory and
displays if it is present or not
s - <name> to make a new directory called <name> and change to a the new
directory <name>
If an input other than "d", "o" or "s" is provided, display the message "no!
try again". Put your code in a loop, so that the shell script is terminated
by inputting the number 6.

if somebody can help me to write this.



More information about the SunHELP mailing list