View Single Post

  #1 (permalink)  
Old 05-11-2008, 04:44 PM
vinz4ever vinz4ever is offline
Junior Member
User
 
Join Date: May 2008
My distro: Zero_Cool
Posts: 1
Rep Power: 0
vinz4ever is on a distinguished road
Question Shell Script Searching For a Record In The File

im trying to display a record... the user has to enter the ***** number to search for n then my script should look for any record with tht number n then display the whole record...
my data file is somthing like this :

9000232 Deo Vik V Media Technician 12/05/2002
9998765 Cassy John M Reporter News 12/08/2001
...
.
..
..
..............



the user will enter a number or maybe just part of it [not the whole number] n then the program should look for tht matching numbers, if any found then display tht on the screen... the whole record...


so if user enters 9000232 then the program should then print :

9000232 Deo Vik V Media Technician 12/05/2002

can someone pliz pliz help...

thanx you in advance....
Reply With Quote