Hello list,
I have a source CSV data file as follows:
PC_NAME,MS11-040,MS11-039,MS11-038,MS11-035
abc123,Not Applicable,Not Applicable,Not Applicable,Not Applicable
abc987,Not Applicable,Not Applicable,Not Applicable,Not Applicable
tnt999,Not Applicable,Not Applicable,Applicable,Not Applicable
terminal,Installed,Installed,Installed,Installed
One thing to note is every time a new patch comes out, new field(s) of data will be appended to the source data field. And I am going to have to account for this.
What I am trying to achieve is reformat the data so that I have three fields:
<Patch_name>,<PC_Name>,<Applicable/Not/Installed>
MS11-040,abc123, Not Applicable
MS11-040,abc987, Not Applicable
MS11-040,tnt999, Not Applicable
MS11-040,terminal, Installed
etc...
Does anyone know of any python/perl/awk than could achieve this?
Any help would be appreciated.
Thanks
Land.