Date: Thu, 13 Sep 2007 15:10:07 -0500 From: Jeffrey Goldberg <jeffrey@goldmark.org> To: Kurt Buff <kurt.buff@gmail.com> Cc: questions@freebsd.org Subject: Re: Scripting question Message-ID: <7DA08899-AE85-4F6E-84FA-CD217881635E@goldmark.org> In-Reply-To: <a9f4a3860709131238u18a48a48kbd06cfbc720d4e4d@mail.gmail.com> References: <a9f4a3860709131016w54c12b6fy94fc2b0f286aea3d@mail.gmail.com> <20070913172001.GA78799@gizmo.acns.msu.edu> <a9f4a3860709131032q21bfefc2hf8d78cae53637576@mail.gmail.com> <20070913175510.GA78984@gizmo.acns.msu.edu> <a9f4a3860709131119h2d7589aej59587749bb1fa2ef@mail.gmail.com> <13D9DDEB-5AC6-4E2C-93F3-40054A97E3C9@goldmark.org> <a9f4a3860709131238u18a48a48kbd06cfbc720d4e4d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 13, 2007, at 2:38 PM, Kurt Buff wrote: >> Instead of grep -v take a look at comm. > Interesting! I just looked at the man page, and while I don't think it > it's going to be directly useful (or I'm just not reading the page > correctly), it's a new utility to me - I'll keep it in mind for other > things. Maybe I haven't understood what you are after. If you want to get lines that exist in either file1 or file2 but not both (and if the files are already sorted) then comm -3 file1 file2 will do that. -j -- Jeffrey Goldberg http://www.goldmark.org/jeff/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DA08899-AE85-4F6E-84FA-CD217881635E>