Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2010 09:26:43 -0500
From:      "Jack L. Stone" <jacks@sage-american.com>
To:        Jonathan McKeown <j.mckeown@ru.ac.za>, freebsd-questions@freebsd.org
Subject:   Re: Grepping a list of words
Message-ID:  <3.0.1.32.20100813092643.00ee5c48@sage-american.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.20100813092643.00ee5c48>