shell 批量文件重命名

#!/bin/bash
cd /home/ad/source/
for files in `ls`
do
	mv  $files "${files:0:0-5}"_SQ.txt 
done

 

你可能感兴趣的:(shell)