tar
tar -tf {解压缩过的压缩文件} | xargs rm -r
https://blog.csdn.net/lkforce/article/details/52861035
unzip
unzip -l elasticsearch-analysis-ik-7.10.2.zip | awk '/-----/ {p = ++p % 2; next} p {print $NF}' | xargs rm -r
参考
http://codingdict.com/questions/46033