![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TextCite: Publication Quotation Manager 1.3 (Default branch) | iBot | Software Releases - RSS News | 0 | 05-08-2008 03:10 PM |
| TextCite: Publication Quotation Manager 1.0.3 (Default branch) | iBot | Software Releases - RSS News | 0 | 01-26-2008 07:20 PM |
| enclose a line with quotation marks | gfhgfnhhn | Shell Programming and Scripting | 3 | 03-05-2007 02:28 AM |
| Tricky script question | budrito | Shell Programming and Scripting | 3 | 06-30-2006 12:06 AM |
| Tricky File Permission Question | Hook | Filesystems, Disks and Memory | 3 | 07-16-2002 12:25 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Tricky Quotation Question
Hi,
I am at a point in my script where I defined the number of the command line parameter I would like to set a variable equal to: parameter_number=14 I would then like to set a variable equal to the correct parameter: variable=$parameter_number The issue here is that {} is required (ie. variable=${parameter_number}). What should I do so that the shell will expand the statement and set "variable" equal to my 14th command line parameter? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
eval variable=\${$parameter_number}
|
|
#3
|
|||
|
|||
|
Hi,
Thank you that works beautifully. Mike |
|||
| Google The UNIX and Linux Forums |