改后缀
for files in `ls *`; do mv ${files} ${files}.bak; done
rename .bak .bak2 *
去除后缀
for files in `ls *`; do mv $files `echo $files |sed 's/.bak//'`; done