grep inside the zip file

i have to grep a particular pattern say "meter number" in 100s of zip files

file1.zip
:
:
:
:
file100.zip

how to achive this?

cat *.zip | grep "meter number"
also i dnt want to unzip and then grep it......

hope i made myself clear. thanks in advance

zgrep 'meter number' file*.zip

hi ali560045

try with gzcat or zcat.

bye

ok, thanks what if i need to grep *.gz files do i have to use the same command?

hi ali560045

you'll find further infos in:

$> man gzcat

Another excellent tool to use is zless.
You are able to less compressed files without going through the rigmarole uncompressing & decompressing files