The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Formatting large Ascii file fahoo UNIX for Advanced & Expert Users 4 10-26-2008 02:49 PM
Text Formatting aravindj80 UNIX for Dummies Questions & Answers 7 04-22-2008 07:57 AM
formatting text esham Shell Programming and Scripting 16 12-27-2006 11:33 AM
replacing text in an ascii doc cubs0729 Shell Programming and Scripting 6 09-29-2005 03:05 AM
convert hex to ascii text dangral UNIX for Dummies Questions & Answers 5 04-16-2003 12:27 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-18-2008
mohan_kumarcs mohan_kumarcs is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 3
ASCII Text formatting

Hi All,

I have a requirement to create a formatted text.
That is., I have a plain text composed to send it through an Email using mailx.
I need to change the formatting of the text like BOLD, ITALIC, UNDERINED, COLOURED, INDENT etc.,

First of all, is it possible in UNIX?
If yes, please let me know how to do that.

I may be crazy giving you the example, we have seen some of the text formatting available while you are sending scraps to your friends in orkut form.

I'm expecting something like that. May be its not soo easy to achieve in UNIX.

Please let me know is it possible in UNIX shell scripting.

FYI. I'm using KSH.

Regards
Mohan Kumar CS
  #2 (permalink)  
Old 11-18-2008
demwz demwz is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 128
Yes its easy
you just have to wrap your text in htlm code

see
unable to sent mail in html format by mailx command.
  #3 (permalink)  
Old 11-18-2008
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 669
This will put the HTML formatted document /path/to/file/as/body as the body of them email.

Code:
( cat <<HERE /path/to/file/as/body ) | /usr/sbin/sendmail -oi -t
From: someone@somedomain.com
To: someoneelse@somedomain.com
Subject: Email Subject Here
Content-Type: text/html; charset=iso-8859-1;

HERE
  #4 (permalink)  
Old 04-25-2009
mohan_kumarcs mohan_kumarcs is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 3
Thanks for the replies..
Sponsored Links
Closed Thread

Bookmarks

Tags
ascii text formatting

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 11:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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