Thanks to all that replied on this.
I kept getting errors even after using the [] in the array.
flogrr - thanks for the one liner, this is what I wound up going with. Initially, I got an error with record 25, but switched to gawk and it works just like I need it to.
C
Ed,
Please excuse my ignorance. I am fairly new to AWK.
I am attempting to use the code supplied. Am getting the following:
nawk: can't read value of aa; it's an array name.
I am either not explaining what I want the end result to look like, or I am not understanding how to provide input for...
Now the next question is, how do I include this in the awk line to have it only write 24 entries on each line?
My awk now writes all entries to 1 line. I need to break it up to write 24 entries per line.
Hello,
I have spent some time reading AWK ref mtl and searching your FAQ, but no luck yet.
I have a one liner used to pull $1 from my INPUT file and write to single line of OUTPUT file seperating with ",".
awk '{ORS=","} ("$1"!="Case") {print $1}'...
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.