Linux,查找> zcat>厕所

时间:2015-03-31 11:55:37

标签: linux bash find wc zcat

我的系统上有很多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它工作正常。 你能帮帮我吗?

1 个答案:

答案 0 :(得分:0)

您可以使用--quiet选项:

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

小心模式周围的" "