Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Need help writing a small script
tiggertony
post Mar 26 2012, 07:12 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 26-March 12
Member No.: 17,508



How do you write a basic shell script for the following requirments?

-Ask the user for his or her name
-Greet the user using that name
-Ask the user what to do
-If 'date' or time', print the date and the time.
-Else if 'where", print the name of the machine.
-Else if 'files', print a list of all files in the user's home directory
-Else print the user's search path.

Please help.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th November 2017 - 01:40 AM