Unix Shell - Re: Attempting to work with a basic variable name and it's value

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > May 2007 > Re: Attempting to work with a basic variable name and it's value





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Attempting to work with a basic variable name and it's value
Ed Morton

2007-05-30, 1:25 pm

Bill Marcum wrote:
> On 30 May 2007 07:48:44 -0700, comatt1@inbox.com
> <comatt1@inbox.com> wrote:
>
>
> eval is your friend, or if your shell supports arrays you can use an
> array instead.
> eval echo \$$i > $SCAN/${i}.out
>
>


I'd have gone the other way with "for i in $v1 $v2 $v3; do".

Ed.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com