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
Using mailx to send in the future? Also change "from" address? paqman Shell Programming and Scripting 2 08-13-2007 01:01 PM
Change a Unix IP address randy1 IP Networking 8 12-26-2006 01:58 AM
How to change IP address itservices IP Networking 2 11-01-2006 09:37 AM
mailx- can we change the from address in the email that is sent out. radhika UNIX for Dummies Questions & Answers 5 09-21-2005 04:37 AM
mailx sender address customisation vasan_srini UNIX for Dummies Questions & Answers 1 09-10-2001 05:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-25-2007
Registered User
 

Join Date: Jun 2007
Posts: 43
Stumble this Post!
change from address in mailx

Hi,
i am sending mails regulary for updation of data.

The from addresses dispaly like
POP.RECH@skk182.com

i want display like

oracle@skk182.com

can u help me on this.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-26-2007
Registered User
 

Join Date: Jun 2007
Posts: 377
Stumble this Post!
just sed

Input(a):
Code:
leodf.s.li@reuters.com
jdfde.yin@reuters.com
output:
Code:
reuters@reuters.com
reuters@reuters.com
code:
Code:
cat a | sed 's/^.*@/reuters@/'
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:07 PM.


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