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-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)