in reply to Clearing lines in a file based on an array containing the lines

$command = join (' | grep -v ', @erase_these) system "cat $in_file" . $command . " > $out_file"
Least amount of your code, C speed, use of multiple cores for free

Limitation: maximum command length on shell

  • Comment on Re: Clearing lines in a file based on an array containing the lines
  • Download Code