Results 1 to 3 of 3
Hi
I had trid to make a multi array in file.sh in linux fedora shell.
but it didn't work.
I trid like this:
PHP Code:
ma =([ "a" "b" "c" ] [ "d" "e" "f" ...
- 04-11-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 20
How to make Multi Array in shell script?
Hi
I had trid to make a multi array in file.sh in linux fedora shell.
but it didn't work.
I trid like this:
Th result was bPHP Code:ma=(["a" "b" "c"] ["d" "e" "f"])
echo ${ma[1]}
but i couldn't echo someting like this : ${ma[1][2]}
Anysuggestion please?
And by the way, what is the name of this languge?
it's not a C,C++ or Perl
So what is it
Thanks.
- 04-11-2008 #2
bash only supports one dimensional arrays.
- 04-12-2008 #3Just Joined!
- Join Date
- Apr 2008
- Posts
- 20
One sentence content tow answers.

Thanks a lot man


Reply With Quote