shell script中如何從檔案中讀取文字存到變數裡 - Linux

By Yuri
at 2008-10-21T21:27
at 2008-10-21T21:27
Table of Contents
我要將檔案中的文字存到某個變數中
然後再做判斷式
比如說我有個檔案input.txt內容為go
要把go存到變數i
if $i=go
do
-----
done
這樣子應該要怎麼寫?
--
然後再做判斷式
比如說我有個檔案input.txt內容為go
要把go存到變數i
if $i=go
do
-----
done
這樣子應該要怎麼寫?
--
Tags:
Linux
All Comments

By Valerie
at 2008-10-22T21:09
at 2008-10-22T21:09

By Madame
at 2008-10-25T11:18
at 2008-10-25T11:18
Related Posts
大家裝套件 都是用什麼方式來裝

By Elvira
at 2008-10-21T16:30
at 2008-10-21T16:30
如何更改區網下的電腦名稱呢?

By Dora
at 2008-10-21T13:12
at 2008-10-21T13:12
有關USB隨插即用的功能

By Iris
at 2008-10-21T13:07
at 2008-10-21T13:07
新手使用LIVE-USB

By Brianna
at 2008-10-20T23:11
at 2008-10-20T23:11
FLTK和Nano-X

By Dinah
at 2008-10-20T20:59
at 2008-10-20T20:59