2015-03-31 33 views
-1

在我的系统上有许多zip文件。我需要计算所有这些符号的数量。但我的命令不起作用:Linux,查找> zcat> wc

[[email protected] ~]$ find /RAID/s.korea/onlyzip/ -name *.zip -type f -exec zcat {} \; |wc -c 

gzip: /RAID/s.korea/onlyzip/00/node/2015-03.compare15.zip has more than one entry--rest ignored 
gzip: /RAID/s.korea/onlyzip/00/node/2015-03.compare16.zip has more than one entry--rest ignored 
gzip: /RAID/s.korea/onlyzip/00/node/2015-03.compare17.zip has more than one entry--rest ignored 
gzip: /RAID/s.korea/onlyzip/00/node/2015-03.compare18.zip has more than one entry--rest ignored 
gzip: /RAID/s.korea/onlyzip/00/node/2015-03.compare19.zip has more than one 

但是,如果我只是ZCAT /RAID/s.korea/onlyzip/00/node/2015-03.compare19.zip它做工精细。 你能帮我吗?

回答

0

可以使用--quiet选项:

find /RAID/s.korea/onlyzip/ -name "*.zip" -type f -exec zcat -q {} \; |wc -c 

当心周围的模式" "的。