ARexx (53/65)

From:mrdo
Date:25 May 2001 at 16:25:37
Subject:Re: rtfm............................

Hello sarkis

On 25-Mai-01, you wrote:

> --- In arexx@y..., Brian Scott <bscott@o...> wrote:
>> Hello sarkis
>>
>> On 24-May-01, you wrote:
>>
>> » Is it possible to read a list of names from a file where the
>> names are » composed of two or more substrings »
>> Give few lines of a file with the list of names you considering and
>> some search strings also.
>>
>> Seems like you will have to do one search at a time in a loop -
>> each time running flashfind and sending the results into a new file
>> each one titled with all or some componant of the search string you
>> are searching for.
>>
>> Brian
> thank you for the post Brian. triple quotes when assigning the
> variable ''
>
> ie entry = '"'READLINE('textfile')'"'
>
> thx all for your help.
> like walking its better to be able to code for oneself
>
> sarkis
>
>
>
>
> ARexx mailing list - No flames, no overquoting, no crossposting.
> Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
Regards

I'm not sure this is what you want, but just in case....

/* find test */

/*
FILE TO SEARCH (copy it to ram:)
This is a test file for flashfind. Using it from an Arexx script,
we want to find several names, like John Smith,
each consisting of two or more words. John D. Brown is
composed of three words, like Mary Elizabeth Jones.
We add Richard Roe and good old
Jack Daniels too.
*/

searchfile = "ram:searchfile"

/* file to ouptput search results */
foundfile = "ram:outfile"

/* names to search */

name.1 = "John Smith"
name.2 = "John D. Brown"
name.3 = "Jack Daniels"
name.4 = "Richard Roe"
name.5 = "Mary Elizabeth Jones"

/* how many names to search for */
name.0 = 5

/* search command */

do i = 1 to name.0
address command 'flashfind >>' foundfile searchfile name.i 'NH NUM QUIET'
end

Regards,



GMaia

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/