8
_
variables can be assigned the result of a numerical computation using the '
@
'
command, however only integer arithmetic is allowed
"
commands:
set value1 = 17
"
@ value2 = $value1 * 2 + 6
"
echo value2 = $value2
¥
Array Variables
_
array variables are set using ()
_
consider the commands:
"
set stuff = ( 11 12 13 seven 15 )
"
echo $stuff
"
echo $stuff[1]
"
echo $stuff[2-4]
"
echo $stuff[8]
"
set stuff = ( hi $stuff $food )
"
echo $stuff
"
echo $path
"
cat ~/.cshrc
"