Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Certain bash syntax 1

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

I'm trying to rewrite a ksh script to work under bash ..
Following problem:

I can't fill parameters using command outputs. Like this:

Code:
parm=$(lsvg)

Could someone help me with the specific bash syntax used to accomplish this ?

Regards,
Thomas
 
Have you tried this ?
parm=`lsvg`

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
That's it, perfect !

Thanks a lot. :)
 
I've never known $( ... ) not to work in bash... is it a really, really old version or something?

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top