這樣可以用shell script來完成嗎 - Linux

By Anonymous
at 2008-11-20T22:26
at 2008-11-20T22:26
Table of Contents
※ 引述《apenptt (筆)》之銘言:
: 不好意思,沒有說清楚
: 讀檔的指令是
: abc>read [file]
: 然後我需要用它做一些工作
: abc>do_something
: 接著輸出
: abc>write [output_file] *綠色為內部的指令
: 在這個環境下,我只需要下這三個指令
: 需要處理的檔案很多
: 程式本身沒有讀script的功能 而且只能一次一個去做
: 所以想請問能否寫一個script,直接從 %> 執行
: 麻煩指教,謝謝!!
$ cat abc.sh
./abc <<- EOF
read [file]
do_something
write [output_file]
EOF
--
: 不好意思,沒有說清楚
: 讀檔的指令是
: abc>read [file]
: 然後我需要用它做一些工作
: abc>do_something
: 接著輸出
: abc>write [output_file] *綠色為內部的指令
: 在這個環境下,我只需要下這三個指令
: 需要處理的檔案很多
: 程式本身沒有讀script的功能 而且只能一次一個去做
: 所以想請問能否寫一個script,直接從 %> 執行
: 麻煩指教,謝謝!!
$ cat abc.sh
./abc <<- EOF
read [file]
do_something
write [output_file]
EOF
--
Tags:
Linux
All Comments
Related Posts
這樣可以用shell script來完成嗎

By Elma
at 2008-11-20T21:53
at 2008-11-20T21:53
這樣可以用shell script來完成嗎

By Gilbert
at 2008-11-20T16:42
at 2008-11-20T16:42
有辦法用SSH遠端回家使用win xp嗎?

By Doris
at 2008-11-20T16:18
at 2008-11-20T16:18
有辦法用SSH遠端回家使用win xp嗎?

By Kristin
at 2008-11-20T14:19
at 2008-11-20T14:19
這樣有需要挑網卡嗎?

By Iris
at 2008-11-20T12:12
at 2008-11-20T12:12