Search Results

Search: Posts Made By: morkfard
6,540
Posted By morkfard
Re: hint...
Thanks for the idea, Alex. Do you know how to echo a variable within a variable?
2,624
Posted By morkfard
Is it possible to print an array with a *...
Is it possible to print an array with a * character:
Ex.
echo ${table*[2]}

so that table1[2], table2[2], and table3[2] get printed? I know I cannot make an multidimensional array:
Ex....
2,624
Posted By morkfard
does this variable call work--Korn
I am new to the UNIX environment, but not to programming. My intention is to create a 2D array and print it. Since the Korn Shell does not support that kind of variable, the following is my...
6,540
Posted By morkfard
RE: solution
Disregard the below solution. It does not work. I am still working on this problem. Any ideas??

The array variable name includes "table" and the value of another variable, $row (thus,...
6,540
Posted By morkfard
Nevermind
I fixed that problem
6,540
Posted By morkfard
printing arrays
Suppose I assign these variables:
n=5
row=n
let col=n/2
val=17
let table$row[$col]=val

I want to print the last variable. How do I do that? I have tried:
echo ${table$row[$col]}
This is...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 09:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy