重命名文件名:

# 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




网名:bass 分享技术 突破难点 创新思维