文件夹下有很多扩展名为log的文件,需要批量更名为gz结尾并且调用gunzip解压缩 find . -name "*.log" | xargs rename log gz find . -name "*.gz" | xargs gunzip -d