[nflug] merge two mail files

Robert Meyer meyer_rm at yahoo.com
Thu Dec 13 11:03:47 EST 2007


How about everybody's good friend 'cat'?

cat file1 file2 > file3

creates a new file 'file3' with the contents of  'file1' and 'file2' concatenated or

cat file1 >> file2

Appends 'file1' to the end of  'file2'.

I'm sure that we'll see perl, ruby, php and a whole host of other solutions.  The more complicated the better.  If you can't think of at least 3 ways to do something in Unix/Linux, you're not thinking hard enough.

Cheers!

Bob
--
"When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return."
   --Leonardo da Vinci

----- Original Message ----
From: eric <eric at bootz.us>
To: nflug at nflug.org
Sent: Thursday, December 13, 2007 10:08:09 AM
Subject: [nflug] merge two mail files


Hi :)  I want to merge two mail files nicely, I don't care which is 
appending to which.  Can some jog my memory on how to do this simple
 task?
Thank you very much... oh the files are 8mb and 3mb in size if that
 matters.
Thanks again,
Eric
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug






      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nflug.org/pipermail/nflug/attachments/20071213/f96a1f36/attachment.html


More information about the nflug mailing list