主題
:
我想在home的每個目錄下touch 一個檔案
查看單個文章
#
2
2005-12-06, 01:59 AM
licheng
進階會員
註冊日期: 2004-06-11
住址: localhost
文章: 950
就寢前發個郵件,順便晃到 domain.club.tw,原來 game.tw 兄已經將問題發在這了。
小弟給您一個提示,game.tw 兄可以先在其他目錄底下作實驗。
如果,要給 /temp 底下每一個子目錄,都 touch 一個 index.html,可以使用如下指令:
find /temp -type d -exec touch {}/index.html \;
Hope this helps.
licheng
查看公開訊息
發送悄悄話給 licheng
查找 licheng 發表的所有文章