[Top][All Lists]
[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 19:47:48 -0500 |
User-agent: |
slrn/0.9.8.1 (Linux) |
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
--
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)
- Re: Is it possible to return the line available in FILE1 but not FILE2 in diff?,
Chris F.A. Johnson <=