The problem with your .. problem is that the result you request isnt
"deterministic", ie this result will also be ok by you, right ? :

111
222
333
AAA
BBB
DUPLICATE
CCC

I got a feeling you're trying to solve your problem in the wrong way ..
better describe your original problem than ask us about how to implement
your solution.

On 7/12/07, Peter B. Steiger <[EMAIL PROTECTED]> wrote:

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

-- 
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