The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to attach a file in a email ting123 UNIX for Dummies Questions & Answers 3 04-11-2009 07:03 PM
How to email a file list chengwei Shell Programming and Scripting 4 04-18-2007 07:10 AM
how to email a file nokia1100 Shell Programming and Scripting 9 04-16-2007 07:13 AM
zip and email a file spalmarez UNIX for Dummies Questions & Answers 4 05-05-2006 02:31 PM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 10:43 AM

Closed Thread
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 03-20-2008
tolkki tolkki is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 7
email file

hi ! i have a file tha contains some e-mail addresses like this:

abc@...
def@...
ghi@...

i want to send the same email to all these contacts
so i want a string addresses =" abc@... def@... ghi@... "
in order to say:

mail addresses

how i can read my file in a string like above??
i know it's a dummy question but i am stuck right now...
there also might be an easier way...
thanks in advance...
  #2 (permalink)  
Old 03-20-2008
xonicman xonicman is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 7

Code:
perl -n -e 'chomp; print "$_ ";' file_with_email_addresses

  #3 (permalink)  
Old 03-20-2008
Franklin52 Franklin52 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,346
With awk:


Code:
awk 'BEGIN{ORS=";"}1'

Regards
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 09:47 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