In the last episode (Feb 08), Doug Poland said:
> Hi,
> 
> Anyone know a command-line tool (or tools piped together) that
> could achieve the following results.  Given...
> 
> % cat fileA
>   line1
>   line2
>   line3
> 
> % cat fileB
>   line2
>   line4
>   line5
> 
> % cat fileC
>   line1
>   line4
>   line6
>   line7
> 
> I would like to see all the lines in fileC that are not in fileA or
> fileB.  In my case, I may be seraching against many files, i.e., 
> (A,B,C,etc...)
> 
> So my desired result would be:
> 
>   line6
>   line7

cat fileA fileB | sort | comm -13 - fileC

-- 
        Dan Nelson
        [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to