This is a discussion on Shell Script Searching For a Record In The File within the Shell scripting forums, part of the Development/Scripting category; im trying to display a record... the user has to enter the ***** number to search for n then my ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
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.... |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| grep , linux , shell script , unix |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script to Automatically Delete a File via Cron Job | kakarla | Shell scripting | 2 | 01-29-2008 08:54 AM |
| shell script for ftp the file | vishal_titre | Shell scripting | 3 | 12-10-2007 08:40 AM |
| Shell script to delete a file with a dialog utility | shankar100 | Shell scripting | 4 | 03-02-2007 10:22 AM |
| error shell script no such file or directory /bin/sh | Linux software | 1 | 01-08-2006 08:34 PM | |
| searching for bad words script | marinm | Shell scripting | 1 | 02-03-2005 04:32 PM |