![]() |
PCDVD數位科技討論區
(https://www.pcdvd.com.tw/index.php)
- 疑難雜症區
(https://www.pcdvd.com.tw/forumdisplay.php?f=34)
- - 關於linux的一個程式寫法(while與script相關)
(https://www.pcdvd.com.tw/showthread.php?t=711545)
|
---|
關於linux的一個程式寫法(while與script相關)
初次發問,如有違規,還請賜教!!!
本題目需用到while迴圈與script 題目如下 輸入數字(1~4) 當輸入1,如果資料夾dir01不存在,則建立一個資料夾 輸入2時,如果aaa.txt存在,則將aaa.txt複製到dir01的資料夾中 輸入3時,建立一個data並將之附加到bbb.txt,若data為bbb.txt,離開程式 輸入4時,則刪除dir01資料夾,並離開while迴圈 以上,請懂得linux的網友賜教,個人非常感謝!!! (原發問於http://tw.knowledge.yahoo.com/quest...d=1507041407720) |
所有的時間均為GMT +8。 現在的時間是05:25 PM. |
vBulletin Version 3.0.1
powered_by_vbulletin 2025。