I'm having trouble getting my head around the most basic of things about
arrays, and wonder if anyone could post something very simple about them,
or point to some elementary link. I understand how to do the notation as
listed in Sed and Awk, or similar books. I can see it working when I
copy
the formulae, but don't really understand why or how it works. What I
don't get is sort of crazy, its 'what an array is'.
Like, I have a file which goes something like this:
1 item1 2.99 sept
2 item2 4.25 may
When you use the array commands to link the first column to the second, as
shown in many of the examples, are you doing something like assigning
names
in Excel? Is it a sort of view into the file? If I'm trying to use the
array commands to total, for instance, all sales of item1 in sept, am I to
create two views into the file....or?
I realize this is confused. Any basic help or pointers would be greatly
appreciated.
Peter


|