[root@chen shekk]# ls
g1 g2 g3 g4 g5 g6 g7 g8
[root@chen shekk]# for i in `ls` ; do mv $i $(echo $i | sed 's/g/G/g');done
[root@chen shekk]# ls
G1 G2 G3 G4 G5 G6 G7 G8
find . -name 'l*' | awk '{print "mv " $1" "$1"_"}' | sh 在文件后添加“_”
find . -name 'l*' | xargs -i mv {} {}1 在文件后添加“1”
阅读(861) | 评论(0) | 转发(0) |