Prev Previous Post   Next Post Next
Old 4th February 2008, 17:02
anything anything is offline
Junior Member
Join Date: Feb 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Phone Shell Script ?

guys I truly need the solution of this, with some explanation !

script (called phone) that creates a simple telephone list (create an empty file called “phonlist” in home directory) . Each line in this file consist of two fields name and the phone number, the script should do the following:
When user types the command : “phone new <name> <number>” this will add new record (name,number) to the list.
When user type command: “phone <name>” then the script should search in the file “phonelist” and gets the phone number and display the result.

and what does these commands do:

[[ -z $user ]]



-eq 1 0

[[ `grep -c $user` -eq 1 ]]


Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script backup a file HELP anything Programming/Scripts 4 5th February 2008 19:09
shell script, create bulk account webelo Programming/Scripts 1 16th January 2008 12:59
Need help getting started simple simple shell script dhonnoll78 Programming/Scripts 1 18th December 2007 13:05
need urgent help for writing shell script dips Programming/Scripts 8 3rd September 2006 20:40
Shell Script Need Help mphayesuk Programming/Scripts 4 27th June 2006 13:06

All times are GMT +2. The time now is 20:55.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.