[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hdparm script



On Thu, Sep 26, 2002 at 11:45:40AM +0200, Kurt Bernhard Pruenner wrote:
> I guess using ${!foo} would help, which takes the content of the
> variable foo and uses that as the variable to get the content from, i.e.
> 
> foo=PATH
> echo ${!foo}
> 
> would print your PATH...

Beware that that's a bashism. You need eval to do it portably.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: