without eval
coordinates=\$e$i,\$n$i
evaluates (for i=1) to
coordinates=$e1,$e2
(you can check this by calling
echo coordinates=\$e$i,\$n$i
eval gives an extra evaluation, that is, it evaluates
coordinates=$e1,$e2
Hi,
I am writing a script which will get the input from a combinations of awk commands and using counters and loop I am generating a dynamic values and passing the output to a file using print -u3 options, now instead of redirecting the output to a file how can the output be created in the same... (3 Replies)
I've noticed something interesting in C++ programming. I've always done tricky stuff with pointers and references to have functions deal with arrays. Doing exercises again out of a C++ book has shown me an easier way, I didn't even know was there. It's weird to me.
When dealing with arrays, it... (4 Replies)
if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Hi all,
I am rather new to shell programing
I am trying to run a loop through variables that already exist,
here is (a part of ) the code, variables param_kz etc already exist (in the same file, i do not run another script file etc) and have values assigned to them (strings, "y" or "n")
echo... (1 Reply)
PHP question...
I have an SQL query that's pulled back user IDs as a set of columns. Rather than IDs, I want to use their names.
So I have an array of columns $col with values 1,7,3,12 etc and I've got an array $person with values "Fred", "Bert", "Tom" etc
So what I want to do is display the... (3 Replies)
Dear all,
How can i unset arrays. I mean all the subscripts including the array after using them.
Could you direct me to some links of array memory handling in the korn shell.
Thanks (2 Replies)