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