in reply to Extract line, matching more than one variable
So - the guys above said their piece, but just for my own 2 cents, there's value to be had from this exercise, because doing multi-matching without getting too loopy is tricky.
So from your question, you have two filehandles, FILE1 and FILE2. You need to exract "a line" from FILE2 "that matches several values" from FILE1. So we need to presume you've already hit the matching conditions to know what you're looking for from FILE2.
Which is interesting, because if you know what the value is, then it gets reduced to:
(This is not valid, just giving you the idea)In short, you need to give more information than you just did, because logically following what you wrote, you're asking us how to delete lines from a file that match a condition, which results in the above pseudo-code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extract line, matching more than one variable
by yads25 (Initiate) on Nov 13, 2008 at 06:09 UTC |