in reply to Filter out an input file with a given waiver file, and output to a specific file
Anyone has any ideas?
Simple algorithm:
- Read the waiver file into a hash keyed on the field to be matched (the first, apparently, in your example)
- Read the input file line by line, extracting the second field for comparison. If there's a matching hash entry, apply it.
- Output the potentially modified line.
- Goto 2 until eof