[TriLUG] any idea how to do this?

jason jason at monsterjam.org
Fri Apr 20 17:28:53 EDT 2007


dammit i knew there was a switch like that I was overlooking! thanks..;)

Jason


Mats Rynge wrote:
> jason (jason at monsterjam.org) wrote:
>> say ive got 2 files with usernames or whatever in em
>>
>> file A has
>>
>> user1
>> user2
>> user3
>>
>> file B has
>>
>> user2
>> user3
>> user4
>>
>> and I want to strip out the duplicate entries from both files, i.e get 
>> output that in this case consists of
>>
>> user1
>> user4
>>
>> ive looked at cmp,diff, uniq, but cant seem to find something thatll get 
>> this output.
> 
> cat A B | sort | uniq -u
> 
> 



More information about the TriLUG mailing list