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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2007
koti_rama koti_rama is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 50
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.
  #2 (permalink)  
Old 09-26-2007
summer_cherry summer_cherry is offline Forum Advisor  
Registered User
  
 

Join Date: Jun 2007
Location: Beijing China
Posts: 1,078
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@/'
Sponsored Links
Closed Thread

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 03:42 PM.


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