There are 3 files a.csv,b.csv,c.csv zipped as abh.zip, now is it possible to execute grep command on abh.zip (is there any wild card by which only grep run for c.csv file inside zip).
相关问题
- How to get the return code of a shell script in lu
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Invoking Mirth Connect CLI with Powershell script
- Error building gcc 4.8.3 from source: libstdc++.so
you can run zipgrep command with pip operator as below.then you can only set name"
If you have
zipgrep
(which, AFAIK, is shipped with thezip
utilities), then you can simply dozipgrep
supports most of the same basic options as vanillagrep
.Alternatively, if you don't have
zipgrep
but you haveunzip
, you can dowhich unzips the file to a pipe (
-p
) then sends it to begrep
ped.