English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Write a shell script that serves as a command menu for a user. The script should prompt them for which command they want to run. Ask them if they want to run a web browsers (links), edit a text file (vi), check their mail (pine) or exit the script. If they choose to browse the web, it should ask them which web page to start with. If they edit a text file, it should aks them which file to edit. If you want to really impress me, make it so that after each task, the menu returns. That is, if they choose links, then it should return them to the menu after they close links.

I am looking for the following commands in the script:


if, then, else statements
echo/read statements
exit statement
while statement (to impress me)

2007-05-07 14:36:33 · 5 answers · asked by ms.nadezhda 1 in Computers & Internet Programming & Design

5 answers

Sorry, but solicitation (for any purpose) on Y!A is against Community Guidelines. If you need help in doing a part of this, we'll definitely help you with it, if you ask us specific questions. However, asking for one of us to do it for you is a violation of Y!A CG, and you should delete this before you're charged with a violation and have your account suspended / warned.

2007-05-07 15:12:40 · answer #1 · answered by Kasey C 7 · 0 1

see i would and could do this, but there are a few problems:
1. there's no reason for me to waste my time
2. it is an easy program that anyone could code themeselves
3. batch is an almost exstinct language not practical for something like this
4. a language such as C++ would be better and faster
5a. if you want to learn anything, code it yourself
5b. or if not then try code.google.com

2007-05-07 15:15:18 · answer #2 · answered by aenman123 2 · 0 0

First divide the input by 168 so the quotient will be no of weeks and divide the reminder by 24 so the quotient will be no of days and the remaining will be hours.

2016-05-17 23:18:28 · answer #3 · answered by Anonymous · 0 0

agree with both of u. But sometime people do need the answers. I know students are bit lazy But sometimes they do learn when we answer.
anyways.
Read this and write the code
http://www.math.utah.edu/computing/unix/unix-tutorial.html

2007-05-07 15:43:23 · answer #4 · answered by Shaifu 3 · 0 0

Check out http://ask.earn.tk/
Then you will never copy and paste code and submit it as your assignment.

2007-05-07 22:32:43 · answer #5 · answered by ask.earn.tk 3 · 0 1

fedest.com, questions and answers