Again, the array is more than what I expected Annihilannic!! I was going to have a seperate array for ea invoice entry and you already beat me to it. (ie: item_date[i]=$1, item_cost[i]=$2,item_tax[i]=$3,item_total[i]=$4)
Now everything is in variables and I can generate an output file!! btw...
awesome code there Annihilannic!
it worked flawlessly.. Im having trouble with the invoices portion of the script. I'm trying to assign the invoices to an array as they are pulled line by line.. Any idea on that?
Excellent assumption on the fact that there's several invoices. However, there is no EOF or EOR character. The next invoice basically starts after the Postal Code (M8Y 3H8) is given. Thats what I was going to use as a termination point. (Sequence...
So, basically I want to grab and put into variables the following from the above text:
Variables:
X, Y, Z Company
50681
08/04/10
Dynamic Array:
07/01/10 3065 2,782.50 0.00 2,782.50
07/01/10 3067 984.38 0.00 984.38
07/01/10 3069 1,007.80 0.00...
I need to grab everything from what I posted, the invoice list, represented here (with three entries), is dynamic:
07/01/10 3065 2,782.50 0.00 2,782.50
07/01/10 3067 984.38 0.00 984.38
07/01/10 3069 1,007.80 0.00 1,007.80
So everything that is listed in my...
Hi Guys,
I posted this before, but somehow I guess my post got lost in cyberspace. :( Im extremely new to AWK. I have a scenario where I need to extract variables and invoice information into an array. Without further adieu, can someone please help point me in the right direction? Here's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.