The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-12-2008
frozentin frozentin is offline
Registered User
 

Join Date: May 2008
Posts: 29
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.
Reply With Quote