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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-13-2008
frozentin frozentin is offline
Registered User
  
 

Join Date: May 2008
Location: Vienna, VA + Bombay, India
Posts: 109
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.