For Programmers: Free Programming Magazines  


Home > Archive > AWK > May 2005 > OT: Re: Help with variables please !! Urgent









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 OT: Re: Help with variables please !! Urgent
Ed Morton

2005-05-11, 3:57 pm



luiz.h.guimaraes@gmail.com wrote:
> Hello guys,
>
> I have a small problem, but I can not solve-it.
>
> Look the example
>
> A=C
> B=AR
>
> CAR=MUSTANG
>
> Ok. Variables are set. But Now, I need print the name "MUSTANG" using
> variable A and B. I tried several times:
>
> echo $"$A$B" result= CAR, not MUSTANG
> echo $A$B result= CAR, not MUSTANG
> echo "$"$A$B result = $CAR, not MUSTANG
>
>
> Someone can help me ? I´m using these variables in a while loop.
> Because of this, I cant use a echo $CAR.
>
> Thanks in advance.
>


I don't see anything related to awk in your posting. I think you want
the comp.unix.shell NG.

Ed.
luiz.h.guimaraes@gmail.com

2005-05-11, 3:57 pm

Sorry, I have sent to wrong group.

Thanks.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com