I want to use sed to add some columns into the below csv file with default value.
My file is like:
40,2012-05-30,London,61,Sunny
41,2012-02-22,Moscow,11,Snow
54,2012-04-10,Tokyo,02,Sunny
I want the output to be:
40,2012-05-30,NULL,London,NULL,NULL,61,Sunny,Tom
41,2012-02-22,NULL,Moscow,NULL,NULL,11,Sunny,Tom
54,2012-04-10,NULL,Tokyo,NULL,NULL,02,Sunny,Tom
What are the best sed or awk commands to get the desired output?
sedcommand is probably not going to be enough to add all those fields to your CSV.