![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to listout the files based on group by the date...? | psiva_arul | UNIX for Dummies Questions & Answers | 3 | 04-21-2008 06:03 AM |
| Newly created files default group and write permissions | goldfish | UNIX for Dummies Questions & Answers | 2 | 02-20-2008 02:39 PM |
| Recursive search for group or other writeable 'dot' files | maficdan | Security | 5 | 02-14-2008 05:43 PM |
| Monkcast #12: IBM HW group OEMs Solaris to chagrin of SW group & a ... - ZDNet.com bl | iBot | UNIX and Linux RSS News | 0 | 08-17-2007 01:30 PM |
| listing sequential files as one group... | kentm | UNIX for Advanced & Expert Users | 1 | 01-24-2007 02:11 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
Quote:
An array INDEX can be multi-dimentional, e.g array[index1, index2,...,indexN]. But an array CELL can only hold a scalar [not at array], e.g. one cannot do array[index1,index2] = anotherArray - at least in older gawk and the Solaris' stock nawk. |
|
|||
|
You are quite correct, hence my earlier statement that "arrays within arrays" can be "faked" - I knew that being lazy would get me into trouble!
The point is that the extra dimensions act as array sets themselves and so although not strictly a distinct instance of an (sub)array it can emulate the construct. So... List #1 elements has child items in List #2 the child items of which are in List #3 Rather than a pointer in each that identifies the child array, a single array is used but with multi-dimensions, the number of which reflect the total number of tiers (i.e. 3 in this case) List[List#1-Index,List#2-Index,List#3-Index] There are plenty of opportunities for this to go screwy but it can be used to good effect if handled carefully enough. As I recall (i.e. I may be making this up as I go along... Pros: It doesn't allocate resource at declaration time Cons: It doesn't allocate resource at declaration time Last edited by Simerian; 06-22-2005 at 09:04 AM. |
|||
| Google The UNIX and Linux Forums |