I have an issue where I need to append a value at the last of the csv, I have created a shell script and it is appending the columns at the last but it is appending at all lines, and my requirement is specific to just append at the 1st line.
I have to use "sed" pertaining to the requirement:
command currnetly used is "cat $1 | sed 's/$'"/,`echo \$2`,`echo \$3`/" > temp.csv" but it is appending the value in all lines of csv....like
AUS,NZM,USA,1,2
SRI,IND,1,2
SA,BD,SNG,1,2