Thanks, Chris, Nick and Steve. I'll try and see which one works best. Wesley Parish
On Sun, 08 May 2005 08:49, Steve Holdoway wrote: > Nick Rout wrote: > >On Sat, 2005-05-07 at 23:58 +1200, Wesley Parish wrote: > >>I need a command line script to find a file with a specific regular > >>expression, in a directory full of ZIPped files - and the regular > >> expression is in one of the ZIPped files. > >> > >>I know I can do "find /<directory> -exec 'grep "<regex>"' > >>or words to that effect - I just don't know how to get it grepping a > >> ZIPped file - if it was gziped I'd be using "zless" at some point in the > >> command line above. > > > >zgrep > > > >>Thanks > >> > >>Wesley Parish > > Also find <dir> | xargs (z)grep... is far more efficient. > > Steve -- Clinersterton beademung, with all of love - RIP James Blish ----- Mau e ki, he aha te mea nui? You ask, what is the most important thing? Maku e ki, he tangata, he tangata, he tangata. I reply, it is people, it is people, it is people.
