Dear Team,
What Chester and I were trying to do was this:
-p <n polls> -d <dev1> -d <dev2> ... -d <dev m>
so that we will have a two-dimensional array for dev_int[m,n] (or dev_int[m][n] in C). This part is ok.
The problem is at the parsing to the HERE document where sed is used. I can't get dev_int[m,n] assigned to DEVINT. From the forum, it is said that awk is the way to go if you want to do array stuffs in string manipulation. I am now looking at awk.
If anyone knows how to do awk, please post your fix.
Thank you.
regards,
hin