Ric,
Never mind. I realized how to set the root:
ww =: ([: shell zipth&,) each {."1 dirtree 'c:\test4\log.gz'
So THIS is the RIGHT way to find paths to all the log.gz files in all the
directories below c:\test4
Then I can treat ww just like I did zz:
cleanString > ('RESULT[0]';crlf,'CONFIDENCE') getTagContents , > ww
dtmf-9 dtmf-0 dtmf-4 dtmf-7 dtmf-2
dtmf-1
kenny
dtmf-1 dtmf-2 dtmf-5 dtmf-3 dtmf-0
dtmf-1
freeways
traffic
ninety one west
yes
sixty
seventy one
dtmf-4 dtmf-9 dtmf-5 dtmf-pound
dtmf-8 dtmf-7 dtmf-1 dtmf-2 dtmf-0
dtmf-1
u s air one ninety one
yes
ontinental fifty three sixty four
correct
what
goodbye
ninety five
madison-heights
traffic
main menu
main menu
ninety five
yes
yes
nah
So now we have the full script. Next will be the acid test, to see if it
can handle all 1000 log.gz files in 1000 directories. Thanks Ric, and all!
Skip
On Wed, Nov 9, 2011 at 6:41 PM, Skip Cave <[email protected]> wrote:
> How do you set the top directory path in your dirtree scheme? I don't want
> to search all directories on my machine, just those directories below
> c:\test4\.
>
>
> On Wed, Nov 9, 2011 at 5:19 PM, Ric Sherlock <[email protected]> wrote:
>
>> Sorry, I hadn't followed the generation of lp.
>>
>> I would still do the following from the root of the directory tree in
>> question:
>> ([: shell zipth&,) each {."1 dirtree 'log.gz'
>>
>>
>>
>
--
Skip Cave
Cave Consulting LLC
Phone: 214-460-4861
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm