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!

making a variable from another in C-shell

Status
Not open for further replies.

mikeprestim

Programmer
Mar 1, 2001
21
GB
Hi this is stupid i know but the syntax is killing me. I don't do much c-shell. Below is a small bit of code to simulate my problem. I am sourcing a much larger file that contains all the feeds and speeds for a CNC drill machine. I know the diameter as $RD_SZE I just need to match the line

#sample line from souce file
set D80 = D80S60F29R188N3000

#drill diameter
set RD_SZE = 80

echo will print correct
echo $D80

echo i am stuck
echo $D$RD_SZE

Any help would be great

Thanks
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top