how to write shell scrit which adds parameters to existing files

Helo I have one file in that one filed is there

RECLEN: 5

now I want to write a shell script which incresaes the value of RECLEN by 126
as well as I want to write shell script which adds
CURPHONER:2:N:Phone used to call a record on which a recall is set
PHONECNTR:2:N:Number of attemmpts at calling RECALLNUMBER to the existing files

how to write such shell scripts

Regards,
Amit

Helo I want to change my problem statement little.

CURPHONER:2:N:Phone used to call a record on which a recall is set
PHONECNTR:2:N:Number of attemmpts at calling RECALLNUMBER to the
to the existing files file1,file2 in one sort and
as well as I want to write a shell script which incresaes the value of RECLEN by 126.

e.g. I have two list1.fdict ,list2.fdict

when I do in my script

echo "CURPHONER:2:N:Phone used to call a record on which a recall is set" >> /opt/avaya/pds/amit/*.fdict

I got following error:

line 5: /opt/avaya/pds/amit/*.fdict: ambiguous redirect

what to do

Regards,
Amit

You can't redirect the line to a selection of files this way. Loop through the files like this:

for file in /opt/avaya/pds/amit/*.fdict; do
  echo "CURPHONER:2:N:Phone used to call a record on which a recall is set" >> $"file"
done

Regards

thx for your reply.
Now I want to following lines to .fdict file . also if this line already exist then dont want to add. tell me how to write such effiecient script
CURPHONER:2:N:Phone used to call a record on which a recall is set
PHONECNTR:2:N:Number of attemmpts at calling RECALLNUMBER
PHONESTATR:1:C:PHONESTAT of the current RECALLNUMBER
ZONEPHONER:1:C:Time zone of the current RECALLNUMBER
LASTDATER:10:D:Date of last attempt on RECALLNUMBER
LASTTIMER:8:T:Time of last attempt on RECALLNUMBER
LASTSTATR:2:C:Stat of last attempt on RECALLNUMBER
FRSTDATER:10:D:Date of first attempt to call RECALLNUMBER
FRSTTIMER:8:T:Time of first attempt to call RECALLNUMBER
FRSTSTATR:2:C:Stat of first attempt to call RECALLNUMBER
SCNDDATER:10:D:Date of second attempt to call RECALLNUMBER
SCNDTIMER:8:T:Time of second attempt to call RECALLNUMBER
SCNDSTATR:2:C:Stat of second attempt to call RECALLNUMBER
THRDDATER:10:D:Date of third attempt to call RECALLNUMBER
THRDTIMER:8:T:Time of third attempt to call RECALLNUMBER
THRDSTATR:2:C:Stat of third attempt to call RECALLNUMBER
FRTHDATER:10:D:Date of fourth attempt to call RECALLNUMBER

Regards,
Amit