•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,419 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,648 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 1765 | Replies: 3 | Solved
![]() |
•
•
Join Date: Mar 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I need help immediately. When/if help is recieved I will pay $20 Paypal right away.
Make the script as described below and email detailed instructions in either Word (preferred) or Word Perfect format. If you don't have either word programs Wordpad will do. I need this in my hands at the latest 11:45 PST tonight.
If interested please PM me and I will give you my email address.
version 3.00.15(1)-release (i386-redhat-linux-gnu) <---Doubt that matters
1. Write a script (SIL3NCE.sh) in the bin directory that will display
a menu to standard out as follows:
==================================================
SIL3NCE's Menu
1) Display date as:
Day Mon D YYYY
2) Display date as:
Day: Day
Date: Mon DD
Time: HH:MM
S
3) who is on the system
4) Quit
Enter selection:
==================================================
2. If the user selects option 1 or 2, display the date in
the format shown.
3. If the user selects option 3, display a list of users
currently logged on the system in any format you
choose.
4. Exit the script only when the user selects option 4.
5. Use the date and cut commands along with the pipe operator to solve options 1 and 2. Store the results in a local variable then display the results to the console.
=======================================================================
Example:
SIL3NCE's Menu
1) Display date as:
Day Mon D YYYY
2) Display date as:
Day: Day
Date: Mon DD
Time: HH:MM
S
3) Who is on the system
4) Quit
Enter selection: 2
Day: Mon
Date: Feb 19
Time: 08:17:33
Press Enter to continue ...
=======================================================================
Make the script as described below and email detailed instructions in either Word (preferred) or Word Perfect format. If you don't have either word programs Wordpad will do. I need this in my hands at the latest 11:45 PST tonight.
If interested please PM me and I will give you my email address.
version 3.00.15(1)-release (i386-redhat-linux-gnu) <---Doubt that matters
1. Write a script (SIL3NCE.sh) in the bin directory that will display
a menu to standard out as follows:
==================================================
SIL3NCE's Menu
1) Display date as:
Day Mon D YYYY
2) Display date as:
Day: Day
Date: Mon DD
Time: HH:MM
S3) who is on the system
4) Quit
Enter selection:
==================================================
2. If the user selects option 1 or 2, display the date in
the format shown.
3. If the user selects option 3, display a list of users
currently logged on the system in any format you
choose.
4. Exit the script only when the user selects option 4.
5. Use the date and cut commands along with the pipe operator to solve options 1 and 2. Store the results in a local variable then display the results to the console.
=======================================================================
Example:
SIL3NCE's Menu
1) Display date as:
Day Mon D YYYY
2) Display date as:
Day: Day
Date: Mon DD
Time: HH:MM
S3) Who is on the system
4) Quit
Enter selection: 2
Day: Mon
Date: Feb 19
Time: 08:17:33
Press Enter to continue ...
=======================================================================
Last edited by SIL3NCE : Mar 5th, 2007 at 2:56 am.
Do Your Own Homework.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
No. I blame you. Even if something did happen that literally incapacitated you, that is still no reason to cheat. Talk to the teacher, and if it is legitimate, they will give you time. Otherwise, you're just a lazy twit.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- For Pay Shell Script - Zip / FTP / Delete transactional files (Shell Scripting)
- What programs pay through paypal? (Advertising Sales Strategies)
Other Threads in the Shell Scripting Forum
- Previous Thread: Can anyone suggest some simple miniproject in C in Linux Environment
- Next Thread: File ext rename



Linear Mode