【发布时间】:2011-12-04 15:25:41
【问题描述】:
我在 Mac Os X 中使用 sh 3.2。我有一个文件 test.conf
config1="Configuration 1"
config2="a lot of text"
config3=...
所以我只需要获取config1= 和config2= 参数。我怎样才能设置一个变量,我可以这样做:
> echo $variable
Configuration 1
这么简单,但我没有做。
【问题讨论】:
标签: shell command-line command sh