The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Q: how to start a service when system start acerlinux AIX 4 04-03-2009 10:37 PM
HP 10.20 Won start hutchin UNIX for Dummies Questions & Answers 1 12-09-2005 02:13 PM
where to put an application if i want to start it on start up shukla_chanchal Linux 3 11-03-2005 10:12 PM
How do I start a program when I start my Computer? l008com UNIX for Dummies Questions & Answers 1 06-23-2002 09:30 PM
Were do I start? pcoste UNIX for Dummies Questions & Answers 1 08-26-2001 05:26 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-06-2009
dsptl dsptl is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 9
How do i start this? (Help)

Write a sh or bash script to manage the customers’ information. The script should allow the user to add and remove a customer, display all customers (sorted by LastName, FirstName, PhoneNumber, Company, or Email), and search a customer's information by his/her name. The script should be menu-based with the following options:
Main Menu:
(a) Add a customer
(r) Remove a customer
(s) Search a customer
(d) Display all customers’ information
(e) Exit
Your choice?
Add Submenu:
Please input First Name: Feng
Please input Last Name: Gu
Please input Phone Number: 1‐404‐5555555
Please input Company/Organization: Georgia State University
Please input Email: fenggu9083@gmail.com
A new customer has been added.
Remove Submenu:
Please input First Name: Feng
Please input Last Name: Gu
Feng Gu has been deleted from the system.
Search Submenu:
Please input the customer’s First or Last name: Feng
First Name: Feng
Last Name: Gu
Phone Number: 1‐404‐5555555
Company/Organization: Georgia State University
Email: fenggu9083@gmail.com
First Name: Feng
Last Name: Xu
Phone Number: 1‐770‐5555555
Company/Organization: Georgia Pacific
Email: fengtan@gmail.com
Display Submenu:
(1) Display all
(2) Display all sorted by Last Name
(3) Display all sorted by First Name
(4) Display all sorted by Phone Number
(5) Display all sorted by Company/Organization
(6) Display all sorted by Email
(7) Return to Main Menu
Your choice?3
All customers sorted by First Name
First Name: Feng
Last Name: Gu
Phone Number: 1‐404‐5555555
Company/Organization: Georgia State University
Email: fenggu9083@gmail.com
First Name: Tom
Last Name: Jackson
Phone Number: 1‐678‐5555555
Company/Organization: Georgia Power
Email: Jackson@gmail.com
Note: For all submenus, please return to the main menu after an action is done. Each customer entry should include FirstName, LastName, PhoneNumber, Company/Organization, and Email. All entries must be stored in a text file customers.txt the following format (“:” is the separator.):
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0