Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > arrays, what th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 2113 of 2317
Post > Topic >>

arrays, what they actually are?

by Al <palcibiades-first@[EMAIL PROTECTED] > Dec 24, 2007 at 08:18 AM

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
 




 7 Posts in Topic:
arrays, what they actually are?
Al <palcibiades-first@  2007-12-24 08:18:40 
Re: arrays, what they actually are?
Manuel Collado <m.coll  2007-12-24 11:18:09 
Re: arrays, what they actually are?
Janis Papanagnou <Jani  2007-12-24 14:12:36 
Re: arrays, what they actually are?
Al <palcibiades-first@  2007-12-26 06:37:19 
Re: arrays, what they actually are?
Janis Papanagnou <Jani  2007-12-26 08:39:30 
Re: arrays, what they actually are?
Ed Morton <morton@[EMA  2007-12-24 10:47:08 
Re: arrays, what they actually are?
"Anton Treuenfels&qu  2007-12-24 21:29:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 0:54:26 CDT 2008.