看板 [ Linux ]
討論串[問題] 有關script的問題?
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者appleboy46 (小惡魔)時間17年前 (2008/11/16 12:18), 編輯資訊
0
0
3
內容預覽:
#!/bin/bash. for(( i=1; i<=100; i=i+1 )). do. if [ "$i" -lt 10 ]; then. /usr/bin/touch "tty0${i}";. else. /usr/bin/touch "tty${i}";. fi. done. 這是我改好的.
(還有163個字)

推噓1(1推 0噓 4→)留言5則,0人參與, 最新作者appleboy46 (小惡魔)時間17年前 (2008/11/15 13:35), 編輯資訊
0
0
2
內容預覽:
#!/bin/bash. for(( i=1; i<=100; i=i+1 )). do. if [ "$i" -lt 10 ]; then. /usr/bin/touch "tty0${i}";. else. /usr/bin/touch "tty${i}";. fi. done. 這是我改好的.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者joedenkidd (優質的藍色射手)時間17年前 (2008/11/15 12:26), 編輯資訊
0
0
0
內容預覽:
各位版友好:. 我寫了一個script如下. #!/bin/sh. for((i=1;i<=50;i++)). {. if[i<10] then. touch tty0$i;. else. touch tty$i;. fi;. }. 這個script是要建立50個檔案. 內容是tty01~tty50
(還有14個字)
首頁
上一頁
1
下一頁
尾頁