How to append value at first line of CSV file using shell script?

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.

Have a look and suggest,

Please post a sample input & output

Hi Dennis,
Thanks for ur prompt reply.

Input file like:
AUS,NZM,USA
SRI,IND
SA,BD,SNG

Appended file should have values like:
AUS,NZM,USA,1,2
SRI,IND
SA,BD,SNG

Rgds
Anuj

num=1
while read -r line
do
    case "$num" in
        1) echo "${line},1,2";;
        *) echo ${line};;
    esac
    num=$(( num+1 ))
done < "file"

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

$ awk 'NR==1 {$0=$0",1,2"}1' input.txt
AUS,NZM,USA,1,2
SRI,IND
SA,BD,SNG

Try:

awk 'NR==1 {  print $0",1,2"; } NR>1' file

---------- Post updated at 17:36 ---------- Previous update was at 17:29 ----------

Using sed:

sed '1s/.*/&,1,2/' filename

Hi.

It would not save any time, but (for me) less typing usually means fewer msitakes. So for sed:

sed '1s/$/,1,2/' filename

cheers, drl