linux
查找当前目录下文件并更改扩展名(零二年的夏天)
更改所有.ss文件为.aa
# find ./ -name "*.ss" -exec rename .ss .aa '{}' \;
例:
[root@mjfweb03 tmp]# cat /etc/issue
CentOS release 4.4 (Final)
Kernel \r on an \m
[root@fweb03 tmp]# touch ww.ss
[root@fweb03 tmp]# touch yy.ss
[root@fweb03 tmp]# find ./ -name "*.ss" -exec rename .ss .aa '{}' \;
[root@fweb03 tmp]# ls
ww.aa yy.aa
评论