我的系统上有很多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它工作正常。 你能帮帮我吗?
答案 0 :(得分:0)
您可以使用--quiet
选项:
find /RAID/s.korea/onlyzip/ -name "*.zip" -type f -exec zcat -q {} \; |wc -c
小心模式周围的" "
。