array in bash - kind request
To: [EMAIL PROTECTED]
Cc: Maemo developers mailing-list maemo-developers@maemo.org
Date: Sunday, 6 July, 2008, 11:37 AM
Hello Darius,
On Sat, Jul 5, 2008 at 7:54 PM, Darius Jack
[EMAIL PROTECTED] wrote:
and have 2D array inmterpreted as one row.
so calculating
Hello Darius,
On Sat, Jul 5, 2008 at 7:54 PM, Darius Jack [EMAIL PROTECTED] wrote:
and have 2D array inmterpreted as one row.
so calculating
array2D ( ) i-th j-th element
as i + (j-1) x row length
I agree with Igor what using bash or even better a POSIX shell would
be a little
insane. Still
C is a good solution. So is Perl, which comes on OS 2008. So is
Python. Perl lets you construct nested lists, which gives you the
equivalent in capability to multi-dimensional arrays. Python gives
similar constructs.
There is no reason IMHO to be writing shell scripts of any kind on a
William Gordon Rutherdale wrote:
C is a good solution. So is Perl, which comes on OS 2008. So is
Python. Perl lets you construct nested lists, which gives you the
equivalent in capability to multi-dimensional arrays. Python gives
similar constructs.
There is no reason IMHO to be
Hi,
my idea is to declare a function
array2D ( )
{ }
and have 2D array inmterpreted as one row.
so calculating
array2D ( ) i-th j-th element
as i + (j-1) x row length
1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
so ith (ith column) element in 3rd row
is 2 x 5 + i
Can I call such declared function in
On Sat, 2008-07-05 at 17:54 +, ext Darius Jack wrote:
I need such 2D array to save gps data and more.
Hmm ... why not switching to C?
It might make far less painfull your effort, and probably would be more
efficient.
--
Cheers, Igor
---
Igor Stoppa
Maemo Software - Nokia Devices RD -