If you have zipgrep (which, AFAIK, comes with zip utilities), you can simply do
zipgrep "pattern" abh.zip c.csv
zipgrep supports most of the same basic options as vanilla grep .
Alternatively, if you do not have zipgrep , but you have unzip , you can do
unzip -p abh.zip c.csv | grep "pattern"
which unpacks the file into a pipe ( -p ) and then sends it as grep ped.
source share