I'm almost there with scripting, and I've looked at a few examples that could help me out here. But I'm still at a lost where to start. I'm looking to parse each line in the log file below and save the output like below.
GCAT022
AABBC 3
GCAT023
AABBC 4
File name to save as /tmp/aabb.csv
DCAT024
PLATO 5
DCAT025
PLATO 6
File name to save as /tmp/plat.csv
TCAT026
SOCRA 7
TCAT027
SOCRA 8
File name to save as /tmp/socra.csv
nawk works, however for each file create it only has the first line from the Log File in them.
NAWK OUTPUT
the saved file /tmp/aabb.csv only has one line in it like below.
GCAT022
AABBC 3
the saved /tmp/plat.csv file only has one line in it like below.
DCAT024
PLATO 5
the saved file /tmp/socra.csvonly has one line in it like below.
TCAT026
SOCRA 7