The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to forward mail in /var/mail/username to external mail unitipon SUN Solaris 2 05-26-2008 09:20 PM
how to merge these two files? fedora Shell Programming and Scripting 3 02-12-2008 02:45 PM
use of sed over cat to merge files miwinter UNIX for Advanced & Expert Users 2 11-28-2007 09:36 AM
How to merge files lestat_ecuador Shell Programming and Scripting 3 06-07-2007 03:45 AM
Cut and Merge tushar_johri UNIX for Dummies Questions & Answers 2 07-05-2005 04:57 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2008
Registered User
 

Join Date: Dec 2007
Posts: 5
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-01-2008
Registered User
 

Join Date: Oct 2007
Posts: 103
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

Code:
#!/bin/sh
echo "Hello" | mail lakris@somedomain.com
or to use output from a program
Code:
#!/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
Reply With Quote
  #3 (permalink)  
Old 02-01-2008
Registered User
 

Join Date: Dec 2007
Posts: 5
mail merge

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
Reply With Quote
  #4 (permalink)  
Old 02-01-2008
Registered User
 

Join Date: Oct 2007
Posts: 103
I am sorry, it is still too unclear.
I hope someone else can help You.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0