LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2004, 01:32 PM   #1
thesnaggle
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 52

Rep: Reputation: 15
adding addresses already there


i have a script that runs when a email is sent to a address on my postfix server
it takes the headers out and puts just the email addresses i am sending it into a file that another script then picks up and makes into the file that i need
this is the first script
#!/bin/sh


#egrep -vi ":" | egrep -i "\@" |\
egrep -vi ":" | grep -v "(Postfix) with ESMTP" > /var/tmp/whitelist.imp
exit 0

is there a way that i can edit this script to look at the origanal file and take the email addresses that are already there and add the new ones to it
 
Old 02-12-2004, 03:44 PM   #2
nikolaus
LQ Newbie
 
Registered: Feb 2004
Location: Cologne / Germany
Distribution: rh9, rh-adv3, suse9, sles8
Posts: 16

Rep: Reputation: 0
mail tools

cat whitelist.imp myexisting_adresses.imp | sort -u > new_whitelist.imp
 
Old 02-12-2004, 04:52 PM   #3
thesnaggle
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 52

Original Poster
Rep: Reputation: 15
THANK YOU
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
List IP addresses stefaandk Linux - Newbie 2 07-26-2005 10:02 PM
IP addresses boakye Linux - Enterprise 1 01-31-2005 09:16 PM
using 2 ip addresses Laimonas16 Linux - Networking 0 09-21-2004 06:45 AM
adding new ip addresses bbiernesser Linux - Networking 4 12-22-2003 07:07 PM
IP addresses ruhode Linux - Software 2 09-09-2002 05:11 AM


All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration