|
This suggestion depends on how big your second file is.
But, you could try to put all the entries of the 2nd file into a grep list and then loop thru the 1st file only once. This way you avoid multiple loops that I suggested in my last post.
One more way would be to attack the i/p file in chunks of say 1000 lines, and append o/p to file3/4.
|