How do i get the value from echo $argv[$i + 1]
?
I have tried
$argv[\` expr $i + 1 \`]
but i get a Missing -. error
while ( $i <= $# )
echo $argv[$i]
echo $argv[$i + 1]
set i = \` expr $i + 2 \
end
How do i get the value from echo $argv[$i + 1]
?
I have tried
$argv[\` expr $i + 1 \`]
but i get a Missing -. error
while ( $i <= $# )
echo $argv[$i]
echo $argv[$i + 1]
set i = \` expr $i + 2 \
end
You can't use arithmetic expressions inside brackets in csh, but you can use another variable: