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

Welcome Guest ( Log In | Register )



The DNS Guys

25 Nameservers Worldwide

Host Monitoring & Auto Rollback

Smart Relay, SASL

OpenID Servers & XMPP

TSIG & Secondary DNS

Amazon Route53 GUI
 
Reply to this topicStart new topic
> 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
michaelk
post Mar 27 2012, 06:25 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,677
Joined: 23-January 03
Member No.: 360



There is a lot of information on the internet about bash programming. Most forums have a standard policy not to expect members to to your homework. We will help if you have a specific question or do not understand a particular command.

tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
tldp.org/LDP/abs/html/
Go to the top of the page
 
+Quote Post

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: 28th July 2014 - 03:17 AM