The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-14-2008
gus2000 gus2000 is offline
Registered User
 

Join Date: Oct 2007
Posts: 155
Ah, you want the shell to parse "$C$x" as "$C1" but instead it is doing "$C" + "$x". So, you need to force it to evaluate $x first.

Code:
# C1=abc
# x=1 
# echo $C$x
1
# eval echo \$C$x
abc
Is that what you were looking for?
Reply With Quote