linux rename 和?????

[root@ob2 mytmp]# ls
01.txt  02.txt  03.txt  aa2.txt  aa.sh  aa.txt  tp_2017-09-143516.tar.gz  tt

[root@ob2 mytmp]# rename .txt .html ??.txt
[root@ob2 mytmp]# ls
01.html  02.html  03.html  aa2.txt  aa.html  aa.sh  tp_2017-09-143516.tar.gz  ttt

 

[root@ob2 mytmp]# find -type f -name "???????"
./02.html
./aa.html
./03.html
./01.html
./aa2.txt

 

posted @ 2017-09-14 16:05  滴滴滴  阅读(358)  评论(0编辑  收藏  举报