shell批量添加扩展名的两种可用方法 方法1: for file in `ls`; do mv $file $file.txt; done 方法2: find . -type f |xargs -i mv {} {}.txt ... 07月23日shell学习笔记1,970评论Shell 扩展名