Re: [exim] bash or perl question

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Chris Meadors
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] bash or perl question
On Fri, 2006-06-23 at 21:22 +0100, Jeremy Harris wrote:
> Dennis Skinner wrote:
> > Marc Perkel wrote:
> >>> cat fileA fileB | sort | uniq -u > fileC
> >>>
> >> Unfirtunately no. file B has addresses mot in file A.
> >
> > Just do fileB twice then :)
> >
> > cat fileA fileB fileB | sort | uniq -u > fileC
>
> Ahem... useless cat again.
> Also useless uniq.
>
> sort -u fileA fileB fileB >fileC


"sort -u" is not the same as "uniq -u" (it's the same as a plain uniq).
But I will give you the useless cat (which I slipped with on my first
post--though it was only half useless as I really was concatenating
files).