From owner-freebsd-questions@FreeBSD.ORG Fri Aug 13 14:26:46 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCE661065672 for ; Fri, 13 Aug 2010 14:26:46 +0000 (UTC) (envelope-from jacks@sage-american.com) Received: from mail.sagedata.net (mail.sagedata.net [38.106.15.121]) by mx1.freebsd.org (Postfix) with ESMTP id B86978FC20 for ; Fri, 13 Aug 2010 14:26:46 +0000 (UTC) Received: from sagemaster (sageweb.net [65.68.247.73]) by mail.sagedata.net (8.14.4/8.14.4) with SMTP id o7DEQjAr029207; Fri, 13 Aug 2010 09:26:46 -0500 (CDT) (envelope-from jacks@sage-american.com) X-Authentication-Warning: mail.sagedata.net: Host sageweb.net [65.68.247.73] claimed to be sagemaster Message-Id: <3.0.1.32.20100813092643.00ee5c48@sage-american.com> X-Sender: jacks@sage-american.com X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Fri, 13 Aug 2010 09:26:43 -0500 To: Jonathan McKeown , freebsd-questions@freebsd.org From: "Jack L. Stone" In-Reply-To: <201008131601.34182.j.mckeown@ru.ac.za> References: <3.0.1.32.20100813084738.00ee5c48@sage-american.com> <867hjv92r2.fsf@gmail.com> <3.0.1.32.20100813084738.00ee5c48@sage-american.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Scanned-By: milter-spamc/1.15.388 (mail.sagedata.net [38.106.15.121]); Fri, 13 Aug 2010 09:26:46 -0500 X-Scanned-By: milter-sender/1.16.915 (mail.sagedata.net [38.106.15.121]); Fri, 13 Aug 2010 09:26:46 -0500 X-Spam-Status: NO, hits=-10.00 required=4.50 X-Spam-Report: Content analysis details: (-10.0 points, 4.5 required) | | pts rule name description | ---- ---------------------- -------------------------------------------------- | -0.0 SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule | -10 ALL_TRUSTED Passed through trusted hosts only via SMTP | Cc: Subject: Re: Grepping a list of words X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2010 14:26:46 -0000 At 04:01 PM 8.13.2010 +0200, Jonathan McKeown wrote: >On Friday 13 August 2010 15:47:38 Jack L. Stone wrote: > >> The only thing it didn't do for me was the next step. My final objective >> was to really determine the words in the "word.file" that were not in the >> "main.file." I figured finding matches would be easy and then could then >> run a sort|uniq comparison to determine the "new words" not yet in the >> main.file. >> >> Since I will have a need to run this check frequently, any suggestions for >> a better approach are welcome. > >sort -u and comm(1)? > >comm will compare two sorted files and produce up to three lists: of words >only in file one, of words only in file 2 and of words common to both files. >You can suppress any or all of the output lists. > >Jonathan >_______________________________________________ Jonathan: Thanks, I had forgotten about comm(1). Mehinks I am close to the solution to the whole issue now. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american