I have two files to process (using Korn Shell). One, which I've constructed, has a series of strings (e.g., X1234, X1335, X2226, etc.) The second file - very large - has embedded within it separate lines containing these same values along with some other 'stuff' that I also need. There is a guaranteed (yeah, right!) match, i.e., every X string will always match at least one (maybe more) records in the larger file.
Question is how do I use the key value file (the one with the Xnnnn values) and make one pass through the larger file, extracting matching records?
I've tried a couple of different methods without success and a co-worker thought that awk could do it - although he wasn't sure how ...
Thanks in advance for any thoughts on this.
Tom
Question is how do I use the key value file (the one with the Xnnnn values) and make one pass through the larger file, extracting matching records?
I've tried a couple of different methods without success and a co-worker thought that awk could do it - although he wasn't sure how ...
Thanks in advance for any thoughts on this.
Tom