I have CSV file that contains data in the format as shown below:
ABC, 67, 56, 67, 78, 89, 76, 55
PDR, 85, 83, 83, 72, 82, 89, 83
MPG, 86, 53, 54, 65, 23, 54, 75
..
..
..
..
I want to create a script that will pull out the rows from the above sheet and paste it into another CSV file. The inputs to the script would be: suppose a name HGR which I will specify and tell that it corresponds to PDR. So the new CSV file will contain HGR and in front of it will have the numbers 85, 83, 83, 72, 82, 89, 83 pasted in front of it. Similarly I should be able to specify multiple such names at a time.
Can anyone help me on this? I am a hardware engineer and dont know much about scripting.