![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mailx : can we have the body to be a binary file ? | CKIRCH | UNIX for Dummies Questions & Answers | 5 | 01-01-2008 07:33 PM |
| concatenating strings.. | jt_csv | Shell Programming and Scripting | 2 | 02-07-2007 10:09 PM |
| MAILX Body containing SQL results | dstinsman | UNIX for Dummies Questions & Answers | 2 | 10-05-2006 11:12 PM |
| mailx error message : mailx: NUL changed to @ | BG_JrAdmin | UNIX for Dummies Questions & Answers | 2 | 12-01-2005 10:27 AM |
| Concatenating Strings | radhika03 | Shell Programming and Scripting | 2 | 09-09-2005 02:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
mailx: concatenating strings for message body (KSH)
Hi all,
Think this is a pretty simple problem, but I've been thinking about it for a few days. Let's say that I'm going to have to output the contents of a file as the body of a mailx message. I'll probably do this: cat <filename> | mailx <extra commands> However, how do I go about doing it if I need to append some compulsory messages as the headers and footers of the message body? Can this be achieved without the creation of another file or appending lines to the file being referenced (assume that I have no privileges to write to or create files) (ie. the mail body should look like this) Welcome user. This is the printout of your status file. OUTPUT OF cat <filename> Please contact XYZ for any unresolved queries. Thanks in advance. |