Learn The Hard Way
The Little Robot
Friday, June 21, 2013
Linux 下批量去后缀加后缀
1. 删除所有的 .xml 后缀
$ rename 's/\.xml$//' *.xml
2. 给当前目录下所有文件加后缀 .xml
for i in *
do mv $i $i".xml"
done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment