I am looking for help in python where I can convert the following into columns.
Data in text file:
---- [ Job Information : 2926 ] ----
Name : Run26
User : abc
Account : xyz
Partition : q_24hrs
Nodes : node3
Cores : 36
State : COMPLETED
ExitCode : 0:0
Submit : 2020-12-15T10:23:22
Start : 2020-12-15T10:23:22
End : 2020-12-15T14:13:50
Waited : 00:00:00
Reserved walltime : 1-00:00:00
Used walltime : 03:50:28
Used CPU time : 00:00:00
Required output:- [ keeping this header contant ]
Job id,Name,User,Account,Partition,Nodes,Cores
2926,abc,xyz,q_24hrs,node3,36
Thank in advance....