Coder's Guild Mailing List

Re: Variables in files

Posted by Morgan Terry on 2000-03-06

echo $variable1

ADnoctum wrote:
> 
> Hi,
> 
> I have a config file that loks like this:
> 
> variable1=value1
> variable2=value2
> ..
> 
> Is there a way(in bash) to get the value of the variable1 w/o the
> "variable1=". I tried grep but it prints the entire line...
> 
> tanks
> 
> ADnoctum
> __________________________________________________
> MicroSoft ha reinventado la Rueda... como un Cubo.
> 
> > To signoff send a mail to listserver@xxxx.xx.xx with
>   "signoff tcg" in the body of your message.

-- 
Morgan	[morgan@xxxxxxxxxxx.xxx]          

He who sacrifices functionality for ease of use loses both and deserves
neither.
To signoff send a mail to listserver@xxxx.xx.xx with 
  "signoff tcg" in the body of your message.