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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
I could not receive the mail sent from the unix server using 'mailx' little_wonder Shell Programming and Scripting 1 07-08-2009 04:07 PM
MobileMe: You receive a "Mailbox full" email message iBot OS X Support RSS 0 11-13-2008 05:00 PM
distribution list won't expand in mailx message antalexi SUN Solaris 4 12-19-2005 04:05 PM
mailx error message : mailx: NUL changed to @ BG_JrAdmin UNIX for Dummies Questions & Answers 2 12-01-2005 10:27 AM
email attachment, with a message using mailx edog UNIX for Advanced & Expert Users 4 09-28-2001 02:03 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-17-2009
siri_886 siri_886 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 16
How to receive message in 2 lines using mailx command

Hi,

I have a file with 2 records in two lines. While mailing these two records using mailx command, those two records coming in a single line. I have used the following command to send those records via mail.


Code:
cat filename | mailx -s "subject" mailaddress

I want the two records in seperate lines in the mail.

Please help me in this.

Thanks in advance.

Next time use CODE-tags when displaying code, data or logs to enhance readability and to keep formatting like indention etc., ty.

Last edited by zaxxon; 07-17-2009 at 05:00 AM.. Reason: code tags
  #2 (permalink)  
Old 07-17-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,323
There should be nothing changed to the newline character. I just tried it out and both lines are separate. Maybe test it with another mail client - could be that it is displayed different. I am using Thunderbird.
  #3 (permalink)  
Old 07-17-2009
siri_886 siri_886 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 16
Quote:
Originally Posted by zaxxon View Post
There should be nothing changed to the newline character. I just tried it out and both lines are separate. Maybe test it with another mail client - could be that it is displayed different. I am using Thunderbird.

It appeared as single line only. i tried with another mail client also.i am using target
  #4 (permalink)  
Old 07-31-2009
shantanuo shantanuo is offline
Registered User
  
 

Join Date: Aug 2008
Location: Mumbai
Posts: 79
Using HERE document might work.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0