LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Urgent (https://www.linuxquestions.org/questions/linux-newbie-8/urgent-735666/)

dasratdatchick 06-25-2009 05:34 PM

Urgent
 
I have some taks that my job requires me to get the results and I would know if anyone can help me out. Preferably with each step.

How do I create a bash script that echoes each argument sent to it, no matter how many there might be.

How do I create a bash script that prints the full name of the day of the week, such as "Friday" I tried to look at the command "date +%w" and the case statement but I'm confused.

How do I create a bash script that asks the user to enter his name and then adds the current date and username to a log file on a single line (make sure you do not overwrite the file).

How do I create a bash script that greets a user by his username (without prompting him) and then displays the contents of his home directory. Keep in mind that the user will run the script.

Tinkster 06-25-2009 05:43 PM

Job?

Looks like homework to me ...

Telengard 06-25-2009 06:04 PM

OP, if you can't learn it for yourself then you won't get that job you're talking about. Instead of begging for homework help on the Internet, why don't you pay attention in class and spend more time in study? The experience you gain from struggling through those first few scripts on your own will benefit you far more than having the answers handed to you.

okos 06-25-2009 06:17 PM

It looks like an interesting class. Where can I go to take that class?

I can help. The script starts with
Code:

#!/bin/bash
With the rest you are on your own :)

bsdunix 06-25-2009 06:24 PM

I guess using an Internet search engine is not allowed. :scratch:

DragonSlayer48DX 06-25-2009 06:46 PM

Hi, and welcome to LQ!

While I won't do your homework for you, I will provide this post so you can check out the links in my sig. Perhaps they might be useful. Good Luck!

Cheers


All times are GMT -5. The time now is 12:20 PM.