On Wed, Nov 9, 2011 at 5:37 PM, Skip Cave <[email protected]> wrote:
> OK, I have figured out how to get a list of each of the paths to each of
> the log.gz files in my directory tree.
>
>   lp =: (> 1 }. 1 dirpath 'c:\test4') ,"1 '/log.gz'

Why are you using dirpath for this?

> I have predefined two path nouns:
>
>   zipth
> "c:\Gzip\gzip.exe -d -c "
>   filepth
> c:\test3\log.gz
>
> So, I can pull out a file and unzip it, given the file path:
>
>  $  shell zipth, filepth
> 237567
>
> But that is just one log.gz file unzipped into a text array. Now I need to
> iterate through all of the list of log file paths I extracted above, and
> create an array of boxed text strings, one boxed string per expanded log.gz
> file. "lp" contains the list of files, one path per row.

You are probably going to want to think about this -- if you have a
100mb log file do you want all log file contents padded out to 100mb
with spaces?

If so, you could use:

   shell"1 zipth,"1 lp

But you might want to think about
   3 :'<shell zipth,y'"1 lp

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to