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.


Sign Up Now
> Need help writing a small script
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
Start new topic
Replies (1 - 1)
post Mar 27 2012, 06:25 AM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,807
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.
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: 22nd July 2018 - 03:04 PM