Need a Shell Program immediately


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need a Shell Program immediately
# 1  
Old 01-22-2002
Need a Shell Program immediately

Hi Friends,
I need a simple shell script(Linux..bash shell) for the below description. Can anyone help me please. I need it very urgently. That is why
i cannot write it myself.

Objective
Create shell scripts using:
· Simple interactive menus
· Variables, functions
Description
Create a shell script, phone.sh, which maintains a phone book.
Detailed Specifications
The phone book is to be maintained as a single text file, phone.txt.·
phone.txt will be in the same directory as phone.sh.
Each line in the file will correspond with one item in the phone book.
The line will be tab delimited fields in the following format:·
Name PhoneNum Company City

Standard Usage Menu driven: the main menu has the following functions:·
Add item·
Delete item·
Search item (by name)·
List all items

Other features ·
Phone.sh may be run from any directory.
The directory name of phone.txt can not be hard coded.
Use basename/dirname command on $0 to find directory names.·Name and phone# are mandatory.
Use reusable functions for prompting and reading fields. ReadField(label, mandatoryFlag)
# 2  
Old 01-22-2002
homework???

This site frowns on posting homework assignments which this looks alot like a homework assignment.

I doubt anyone would just "give" you a script. They might give you some guidance. But you will have to write it for the most part yourself.

I know this sounds harsh, but you wont' learn if you don't do it yoruself. I know that I had to learn slowly at first and had some late nights doing trial and error on my homework scritps.

Look at the FAQ section for some help.

You can go to www.perl.com or http://www.whereisit.com/shellscript/index2.html
http://oase-shareware.org/shell/

A very good Perl tutorial here.
http://www.scs.leeds.ac.uk/Perl/
# 3  
Old 01-22-2002
reply

Hi,
Thanks for the reference sites. It's was not a Homework, but a small test(open book) wherein i needed to submit this code immediately.I have never worked on unix before.
Thanks and Regards,
Praji
# 4  
Old 01-22-2002
Okay. Sorry for the lecture.

The way that you worded it seemed like it could have been.

Hope you get your script done in time.

Good Luck!

Smilie
# 5  
Old 01-22-2002
Still was school work..... open book tests are the same as homework. Good call Kelam_Magnus, keep up the good work!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Nohup immediately stops.

I try and start a short script nohup the nohup immediately stops. Here's the code #!/bin/sh rm backup.out for i in `cat /home/xxxxx/Allservers.txt` do echo "Logging onto $i" ssh -qt $i '/usr/local/bin/sudo "/src/bkupsa"' done >>backup.out Any ideas? (3 Replies)
Discussion started by: ekrause77
3 Replies

2. Shell Programming and Scripting

to run a script immediately after restart

Hi i want to run my shell script "script.sh" whenever the system restarts. I am using Solaris 10. Please help. Thanks. (2 Replies)
Discussion started by: chinchao
2 Replies

3. Shell Programming and Scripting

please tell immediately

what is the script to take files from ftp to unix server and unzipped the files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

4. Shell Programming and Scripting

To find a character immediately following a word

Hello, I have data in one file like - UNB+UNOA:1+006415160:1+WF0000010188:ZZ+080701:0600+2++DELFOR++++T'UNH+2+DELFOR:D:97A:UN................ Now, I want to find what is the character immediately following UNB(here +) UNOA (here :) or the character immedialtely preceding UNH (here ') &... (2 Replies)
Discussion started by: The Observer
2 Replies

5. Programming

Experts !!! I Need HELP immediately..!

HI, I am getting the error : ErrCode:-2 Message:Application Initialisation function Err Params:Could not Load SO/DLL Nothing specific is coming, just the above error. Can anyone tell me how to debug this error. Thanks. (3 Replies)
Discussion started by: amol_helwatkar
3 Replies

6. Linux

please help immediately

how can i check if the size of my file is greater than 5MB and if it is so then how can I direct my data to another new file. the data will be in the form of SQL query (4 Replies)
Discussion started by: infyanurag
4 Replies

7. Shell Programming and Scripting

Please respond immediately

Hi ..please tell me how to modinfy an existing file in a directory, i need commands like to open edit and save n execute the file in BASH. please respond immediately (3 Replies)
Discussion started by: deepti.1104
3 Replies

8. UNIX for Dummies Questions & Answers

I need help immediately. Please help me

Hi Everyone, I am writing a script, in that i want to find out whether my disk space usage capacity extends more than 98%. If my disk space capacity extends more than 98% i want to print that the space capacity is running out of space otherwise i want to print only the capacity of the space... (4 Replies)
Discussion started by: Sheethal
4 Replies

9. AIX

UIDs being overwritten immediately

We have a problem where we delete a user and their associated UID gets dumped back in the UID pool. The if we immediately create a another (new) user, AIX reuses the last UID, the one that was just released. This is causing a problem when reports are being generated because the new users name is... (2 Replies)
Discussion started by: xsys2000
2 Replies
Login or Register to Ask a Question