24 Aug
2008
24 Aug
'08
00:36
On Saturday 23 August 2008 17:24, David C. Rankin wrote:
Listmates,
I don't know if this can be done, but I was trying to get a c style for loop to dereference the counter i to the equivalent command line parameter $1, $2, etc.. Like:
for ((i=1;i<=$#;i++)); do echo "\$$i = ${$i} done
Look into the "let" and "eval" built-ins (in the BASH manual page). Understanding BASH array variables may also help.
...
-- David C. Rankin
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org