bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to return the line available in FILE1 but not FILE2 i


From: Chris F.A. Johnson
Subject: Re: Is it possible to return the line available in FILE1 but not FILE2 in diff?
Date: Mon, 12 Nov 2012 20:14:38 -0500
User-agent: slrn/0.9.8.1 (Linux)

On 2012-11-13, Chris F.A. Johnson wrote:
> On 2012-11-12, Peng Yu wrote:
>> Hi,
>>
>> I just want to return the line available in FILE1 but not FILE2 in
>> diff. After I read the document, it seems that this is not possible.
>> Could anybody confirm whether this is true? If so, is there an
>> alternative tool that does this? Thanks!
>
>    Perhaps you want comm instead of diff:
>
> comm -23 FILE

   I meant:

comm -23 FILE1 FILE2
 
-- 
   Chris F.A. Johnson                          <http://cfajohnson.com>
   Author:                                     =======================
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]