Re: [exim] bash or perl question

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jeremy Harris
日付:  
To: exim-users
題目: Re: [exim] bash or perl question
Chris Meadors wrote:
> 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


>> sort -u fileA fileB fileB >fileC
>
> "sort -u" is not the same as "uniq -u" (it's the same as a plain uniq).


Point. How about "join -a 1 fileA fileB >fileC" ?

- Jeremy