Suppose file A has:
AAA
BBB
DUPLICATE
CCC

and file B has
111
DUPLICATE
222
333

I'd like to combine the two files without changing the order of the
lines AND without including duplicate lines, so the end result might be
something like this:
111
DUPLICATE
222
333
AAA
BBB
CCC

I can only use /bin/uniq if I first sort the combined file, and as noted
I don't want to change the order of the lines in each file.  Surely this
wheel has already been invented... but all my googling just turns up
information on how to use a combination of sort+uniq to do the job.

-- 
Peter B. Steiger
Cheyenne, WY

----------------------------------------------------------------------
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com/tag/1

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to