Results 1 to 2 of 2
hi i dont really have an idea of what to do with this one.
here are the instructions. any help would be a wonderfull.
thanks
Write a shell program called ...
- 04-26-2008 #1Banned
- Join Date
- Apr 2008
- Posts
- 2
help with scripting taking unix 1 course
hi i dont really have an idea of what to do with this one.
here are the instructions. any help would be a wonderfull.
thanks
Write a shell program called info that will prompt the user for: (make it the best way for user)
Name
Street Address
City, State, and Zip
The program should then store the replies in variables and display what the user entered.
(use good tech, ie user oriented & considers possible errors) (hint seperate for reads)
2nd problem is
Write a shell program called home that prompts for any users login_id and returns the value of
that users HOME directory and full name . Recall that the Full name and Home directory are the fifth
and sixth field in the /etc/passwd file. An error message is displayed if the user id is not a valid user
id. (hint cut -f5,6 will get field 5 & 6 from /etc/passwd {extra credit change : to -})
last one is
) Write a shell program, hello, to display the phrase "hello world" 50 times (script should verify the
count) . Do not use a for loop! (hint should show hello world 1 ..... hello world 50 )
- 04-26-2008 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,096
Sorry, but it's against the forum rules to post homework questions:
http://www.linuxforums.org/forum/lin...ums-rules.htmloz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.


