LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2009, 06:34 PM   #1
dasratdatchick
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
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.
 
Old 06-25-2009, 06:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Job?

Looks like homework to me ...
 
Old 06-25-2009, 07:04 PM   #3
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
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.
 
Old 06-25-2009, 07:17 PM   #4
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
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

Last edited by okos; 06-25-2009 at 07:20 PM.
 
Old 06-25-2009, 07:24 PM   #5
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 80
I guess using an Internet search engine is not allowed.
 
Old 06-25-2009, 07:46 PM   #6
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 11:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 09:07 PM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 03:22 AM


All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration