Does something like this work?: cleanFile=: [: deb -.&(TAB,CRLF) getSkipsTags=: ('starttag';'endtag')&getTagContents > getSkipsTags@cleanFile@([: shell zipth&,) each {."1 dirtree 'log.gz'
Running deb on the whole file is perhaps not ideal - you may want to experiment with running cleanFile after getSkipsTags (i.e. cleanFile@getSkipsTags ) On Wed, Nov 9, 2011 at 8:02 AM, Skip Cave <s...@caveconsulting.com> wrote: > That solves it!. This code does he trick > > aa =: deb"1 > ('starttag;'crlf,'endtag') getTagContents shell zipth, > filepth > > aa > This is the first string I want > This is the second string I want > > > Now for the last step. 'filepth' is currently: > > filepth > c:\test3\log.gz > > My test3 directory had no sub-directories, just one log.gz file, for basic > testing. My test2 directory has around 60 or so sub-directories, where each > sub-directory contains one log.gz file. I made this test2 subset also for > testing, as the real structure contains nearly 1000 sub-directories, each > with a log.gz file. > > I need to apply the 'deb"1 > ('starttag;'crlf,'endtag') getTagContents > shell zipth, filepth' verb to each of the subdirectories in the test2 > directory. How can I change the filepth noun to allow this iteration? > > Skip > > On Tue, Nov 8, 2011 at 12:31 PM, Raul Miller <rauldmil...@gmail.com> wrote: > >> deb"1 aa >> >> But note that the result will then be padded on the right so that the >> shapes match. If you do not want this, you will need to box the >> result of deb: >> <@deb"1 aa >> >> -- >> Raul >> >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm