-1

我的系统上有很多 zip 文件。我需要计算所有符号的数量。但我的命令不起作用:

[zola@n.korea ~]$ 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 它工作正常。请问你能帮帮我吗?

4

1 回答 1

0

您可以使用以下--quiet选项:

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

当心" "图案周围。

于 2015-03-31T12:14:14.460 回答