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

"Chris F.A. Johnson" <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Organization A noiseless patient Spider
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.