Hello,
I have a fairly simple file which will consist of data from about 3000 servers. The file looks like this:
SERVERNAME
PASS
FAIL
PASS
PASS
PASS
...
SERVERNAME
FAIL
PASS
NG
PASS
FAIL
What I need to do is create rows for each server name with all their pass/fails. I want the data comma delimited, as this will be imported into a database.
SERVERNAME,PASS,FAIL,PASS,PASS,PASS
SERVERNAME,FAIL,PASS,NG,PASS,FAIL
I've tried using nawk and awk to do this based on examples I've seen online, but so far no luck.
This is on AIX 5.3 Tech Level 8 by the way, using standard AIX awk/nawk.
Thanks in advance for your assistance.
Best regards,
Jamie