At 07.53 -0500 2007-01-25, Jason R. Finley wrote:
>I've looked high and low but can't figure out how to easily do this:
>I have two text files. In the first is a list of words (one word per line),
>and for EACH of those words, I have to search and see if it exists in the
>second text file. How can I automate this?
>(preferably without reinventing the wheel)
>thanks very much,
I had this need just a few days ago. I ended up using the diff command that you
get if you have Developer Tools/XCode installed (after sorting the files), and
processed the result to see what words existed and not in each file (those are
prefixed with =, < and > respectively). diff has some options to fine tune the
output, and I somehow got a useful result in the end.
--
Johan Sölve [FSA Member, Lasso Partner]
Web Application/Lasso/FileMaker Developer
MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se mailto:[EMAIL PROTECTED]
(spam-safe email address, replace '-' with 'a')
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>