Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. AfroJoe

    How do I parse such a complicated file?

    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...
  2. AfroJoe

    How do I parse such a complicated file?

    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?
  3. AfroJoe

    How do I parse such a complicated file?

    great!! Im going to give it a shot right now.
  4. AfroJoe

    How do I parse such a complicated file?

    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...
  5. AfroJoe

    How do I parse such a complicated file?

    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...
  6. AfroJoe

    How do I parse such a complicated file?

    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...
  7. AfroJoe

    How do I parse such a complicated file?

    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...

Part and Inventory Search

Back
Top