[TriLUG] any idea how to do this?
Mats Rynge
rynge at renci.org
Fri Apr 20 17:22:37 EDT 2007
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
--
Mats Rynge
Renaissance Computing Institute <http://www.renci.org>
More information about the TriLUG
mailing list