[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: differences/similarities between two files..

Michael Beattie <mickyb@es.co.nz> writes:

> Lets say I have two text files... Both having several quotes, one per
> line. Each file has unique quotes, but both also have some quotes which
> are the same. What is a method to get from these two text files, a third
> file, which has all of the unique quotes, and only one of each of the same
> quotes.. i.e.:

sort -u File1 File2 > File3

[-u is for uniq]

If File1 and File2 is sorted "sort -m -u File1 File2 > File3" might be

You better read the manpage for sort. Im sitting at a HP-UX and I
don't think it's the gnu sort we have.
Makholm d.y.

Reply to: