I have a fixed format text file which I need to convert to CSV. As this will need to be done repeatedly can you please tell me how I can do this via scripting?
My file currently looks something similar to this below;
I'd like for the output to be converted so that it looks similar to this;
I understand AWK can do this, however I am not a whizz with this and would very much appreciate some help
My file currently looks something similar to this below;
[tt]Company Emp_ID Surname First_Name
1 123456 Bloggs Fred
1 123457 Smith John
[/tt]
I'd like for the output to be converted so that it looks similar to this;
[tt]Company,Emp_ID,Surname,First_Name
1,123456,Bloggs,Fred
1,123457,Smith,John
[/tt]
I understand AWK can do this, however I am not a whizz with this and would very much appreciate some help