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:

  1. Read the waiver file into a hash keyed on the field to be matched (the first, apparently, in your example)
  2. Read the input file line by line, extracting the second field for comparison. If there's a matching hash entry, apply it.
  3. Output the potentially modified line.
  4. Goto 2 until eof
  • Comment on Re: Filter out an input file with a given waiver file, and output to a specific file