script執行檔案 - Linux

By Candice
at 2011-12-08T23:57
at 2011-12-08T23:57
Table of Contents
例如我寫好一個script,名字為test,是對檔案file執行名令的
例如script的內容為cat file
我直接執行./test 就可以把file的內容列出
但我想推廣到把test應用到不同的檔案
例如我執行./test file1 就可以把file1的內容列出
./test file1 就可以把file2的內容列出
但我不知道要加什麼在script裡才能做到
來請教各位版友
感謝
--
Tags:
Linux
All Comments

By Kama
at 2011-12-12T13:38
at 2011-12-12T13:38
Related Posts
虛擬機下無法連上ftp

By Faithe
at 2011-12-08T23:13
at 2011-12-08T23:13
有關匯入module,卻沒有device

By Olga
at 2011-12-08T15:05
at 2011-12-08T15:05
Round Robin DNS

By Andrew
at 2011-12-08T11:56
at 2011-12-08T11:56
請問fedora預設輸入root密碼視窗的套件??

By Joe
at 2011-12-07T23:50
at 2011-12-07T23:50
Fedora 15 x86_64的usb安裝

By Rebecca
at 2011-12-07T22:34
at 2011-12-07T22:34