rename

 

重命名文件名:

# rename hosts.conf.正式配值文件 hosts.conf.正式配置文件 hosts.conf.正式配值文件 
[root@monitor-44 vhost]# ls
hosts.conf  hosts.conf.bak01  hosts.conf.正式配置文件

rename支持通配:

?:匹配单个字符

*:匹配多个字符

[root@NB test]# ls
[root@NB test]# touch foo foo1 foo2 foo3 foo4 foo5 foo6 foo7 foo8 foo9 
[root@NB test]# ls
foo  foo1  foo2  foo3  foo4  foo5  foo6  foo7  foo8  foo9
[root@NB test]# rename foo foo0 foo?
[root@NB test]# ls
foo  foo01  foo02  foo03  foo04  foo05  foo06  foo07  foo08  foo09

 

posted @ 2016-12-25 17:10  bass  阅读(216)  评论(0编辑  收藏  举报