The important thing to look at is that this has not much to do with how many the files or folders are.
Start out with going through the motions step by step with one file. Then create a test case with a habdful of files and once that is done then you apply the solution on all of them and if the test case is done properly obly difference will be that it takes a bit longer. The difficult part is figuring out what tools to use to combine operations during unzip and there are several ways. One is using the task utils and a decision where to place the unzipped file is important. Working with handful of files and doing things manually in the beginning and not thinking about all the thousands until the test case is ready is very important. 2011/11/4 Skip Cave <s...@caveconsulting.com> > I have several thousand files which are distributed into about a thousand > folders. All of the folders are contained in one directory on my machine. > Each of the thousand folders contains 1-10 files. All of the files in each > folder have been compressed using the gzip program. I need to sequence > through all of the folders, find the file in each folder labeled "LOG" > (there will be only one in each folder, with no extension), and expand it. > I then need to examine the expanded LOG file (ASCII text file) and search > the LOG file for a specific unique text string that will be the same in all > the LOG files. I need to extract the string of a few hundred characters > that *follows* the initial matched string in the LOG file. That second > string will be terminated by another (different & third) unique text string > which will also be the same in all LOG files. I want to place all of the > extracted strings into a single boxed array using a single J function. > > How hard is it to do this in J? Can someone give me a start in the right > direction, perhaps with some example code? I currently only have J 6.02 on > my machine. > > -- > Skip Cave > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Björn Helgason, Verkfræðingur Fornustekkum II 781 Hornafirði, t-póst: gos...@gmail.com gsm: +3546985532 twitter: @flugfiskur http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) ♖♘♗♕♔♙ `. )----' (")_(") ☃☠ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm