![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| nawk-how count the number of occurances of a pattern, when don't know the pattern | cyber111 | Shell Programming and Scripting | 2 | 05-11-2008 04:00 AM |
| SED Search Pattern and Replace with the Pattern | racbern | Shell Programming and Scripting | 4 | 03-15-2008 05:59 AM |
| Pattern searching pattern in c files | murthybptl | Shell Programming and Scripting | 6 | 11-17-2007 09:15 AM |
| Search file for pattern and grab some lines before pattern | frustrated1 | Shell Programming and Scripting | 2 | 12-22-2005 03:41 PM |
| Pattern | roberthawke | UNIX for Dummies Questions & Answers | 1 | 05-31-2002 01:45 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Pattern
Hi All,
I have a file having data like the following one.. 1234#5456#545#123ASD12#ASCV#ANM#AS45#3AP67 1234#513#7525#11ASD3#ASV##A74#3AP68 123#8858#7744#ASD9955#ACV#FT### 31###VDM#VM#AC#ASD#3A45 1234#1111#0000#VC#AA#12ASD52#A85#3B55 #####ASD11#C34#02B5 I need to extract all lines which have an occurence of ASD in its forth field. All lines in which ASD occurs in any other field must be discarded. so my output for above lines of input should be.. 1234#5456#545#123ASD12#ASCV#ANM#AS45#3AP67 1234#513#7525#11ASD3#ASV##A74#3AP68 123#8858#7744#ASD9955#ACV#FT### Thanks in advance. Regards Rochit |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|