![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to read record by record from a file in unix | raoscb | UNIX for Dummies Questions & Answers | 1 | 05-16-2008 07:30 AM |
| Script to search a bad record in a file then put the record in the bad file | shilendrajadon | Shell Programming and Scripting | 2 | 12-28-2007 10:02 AM |
| Script to search a bad record in a file then put the record in the bad file | shilendrajadon | UNIX for Advanced & Expert Users | 1 | 12-28-2007 10:00 AM |
| splitting a record and adding a record to a file | rsolap | Shell Programming and Scripting | 1 | 08-13-2007 02:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Seach for Record
Below is an example of a file with some records... each record start with P1 till the next P1. If I search for something like "4,4545:" then I want all the records with "4,4545:" to be removed from original file and copied to a temp file. Code:
P1 1,123455654444 2,7126817361873 3,2134128282828 4,4545:812987123 P2 5,123:123213123 6,98:123123123 P3 7,9123123123 8,908890909 9,99919239123 P1 1,123455654444 2,7126817361873 3,2134128282828 4,4545:812987123 P2 5,123:123213123 6,98:123123123 P3 7,9123123123 8,908890909 9,99919239123 P1 1,123455654444 2,7126817361873 3,2134128282828 4,4545:812987123 P2 5,123:123213123 6,98:123123123 P3 7,9123123123 8,908890909 9,99919239123 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|