[sean@station62 tmp]$ for name in {1..10}
> do echo $name
> done
1
2
3
4
5
6
7
8
9
10

-----

[sean@station62 tmp]$ ls
file1.html  file3.html  file5.html  file7.html  file9.html
file2.html  file4.html  file6.html  file8.html
[sean@station62 tmp]$ for name in *
> do mv $name $name.php
> done
[sean@station62 tmp]$ ls
file1.html.php  file3.html.php  file5.html.php  file7.html.php  file9.html.php
file2.html.php  file4.html.php  file6.html.php  file8.html.php

---

 

文章標籤
全站熱搜
創作者介紹
創作者 sean 的頭像
sean

My Source Code

sean 發表在 痞客邦 留言(0) 人氣(4)