mail merge

dear friends

plese give me full shell script for mail merge facilityu.

i.e. to create a letter file
i.e to create data file
and report maile merge using shell scripitng.

when run the programme ask for fields and store in a file

and from another program when run that mail merge file and store in a separate file

advance thanks

Hello,
can You please tell us if You have done anything so far? I think Your question is unclear. Maybe an example could make Your problem easier to approach.
What do You mean by data file? What kind of data?

If You have a mail program such as mail or mailx installed, it is easy to have it send files or output from another program to someone else. From within a shell script.

The easiest example would be

#!/bin/sh
echo "Hello" | mail lakris@somedomain.com

or to use output from a program

#!/bin/sh
df | mail lakris@somedomain.com

Check the man page for mail and the shell You are using. More info about Your problem would be helpful.

/Lakris

dear friend i have to maintain / send call letter for employment or i have to give some disclinary letters ......and so on

1st data file

sno name staffno desg ........(fields)
1 rama 12345 driver
2 ramana 12346 shramik

2nd common letter

to
sri (here name field data)
desg (here desg filed data
staffno (here staffno filed data)

(here common letter f saj fksdj kfs fjs f jsfs0)
fjsa fksja fkjsd fklsdj kf sd dlsj fjsdjf jsd fklsad

sd/x
supervisor

3 rd report file

merging of above filed datas at respective places with common letter with page break of each individual letter . and the above entire process with shell programe .

ex: 1st letter will be

to
rama,
driver,
12345,
jkf sakj dfjkds fklsdj lkfslk fsdfs

sd/xx
supervisor

kindly do the need ful.

urs faithfully,
cvvsnm

I am sorry, it is still too unclear.
I hope someone else can help You.