in reply to Faster grep in a huge file(10 million)

Does file1 contain patterns or literal strings? If the latter, you might want to read it into a hash, or sort both files and use a modified merge.
Just another Perler interested in Algol Programming.
  • Comment on Re: Faster grep in a huge file(10 million)