![]() |
|
|
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 |
| Issues while sending a mail having records fetched from SQL -all in UNIX | DeepSalwan | UNIX for Advanced & Expert Users | 4 | 07-11-2009 10:07 AM |
| diplay user process in separate lines | mathur | Shell Programming and Scripting | 5 | 10-29-2008 05:19 AM |
| extract x lines after a pattern - place each result in separate file | gobi | Shell Programming and Scripting | 5 | 06-06-2008 04:03 PM |
| Separate lines in a single '|' separated line | hidnana | Shell Programming and Scripting | 3 | 03-17-2008 10:16 AM |
| Count No of Records in File without counting Header and Trailer Records | guiguy | Shell Programming and Scripting | 2 | 06-07-2007 01:15 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to get 2 records in 2 separate lines in the mail
export VarMailAddress=abc@gmail.com
export SUBJECT="Hi" ( echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo "Content-Disposition: inline" echo "<HTML><BODY>" echo "<B> <U>NAME ID Address </B> <br /> " echo "`cat FILE`" echo "</BODY></HTML>" ) | /usr/sbin/sendmail $VarMailAddress Here FILE contains: abc 43 ghju iop 56 hjmgkl but in the mail, above two records are coming in a single line like: abc 43 ghju iop 56 hjmgkl My requirement is to get 2 records in separate lines. can anybody help me in this ASAP Thanks in advance. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|