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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cconsun

  1. cconsun

    stringing output to same line and multiple lines if NF>x

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

    stringing output to same line and multiple lines if NF>x

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

    stringing output to same line and multiple lines if NF>x

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

    stringing output to same line and multiple lines if NF>x

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

Part and Inventory Search

Back
Top