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 Mike Lewis 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. sqwawk

    gawk: Can't print array in END block

    @gnsxhj, Thanks for the response. Yes, that was one of the things I tried. But it didn't work so long as I was using a variable named "counter". Works perfectly with a variable name like "x" though :)
  2. sqwawk

    gawk: Can't print array in END block

    @PHV - Oh, so it has a special meaning and is not actually the value of my variable as I was thinking? Well that would explain why it didn't work. Thanks!
  3. sqwawk

    gawk: Can't print array in END block

    Thanks for the reply. Sorry that was a copy/paste error. I tried so many things. When arr[x] did not work, I tried using a hard coded index [1] to see if it changed the results and posted that by accident. What finally worked was changing how and where I incremented the counter value. I...
  4. sqwawk

    gawk: Can't print array in END block

    I am new to awk and have created a very simple script. It should read file lines into an array and print all lines in the END block. But when I test it nothing prints except the counter value: 1:: (should be something here ...) 2:: 3:: 4:: ... Could someone please tell me what I am doing...

Part and Inventory Search

Back
Top