LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] users

[ILUG] users

Joshua Beining JBeining at eline.com
Sun Nov 19 19:24:13 GMT 2000


#!/bin/sh
#Get all email addresses from list1.  If they exist in list2 output to
#output_file

list1=/path/to/list1/list1.txt
list2=/path/to/list2/list2.txt
output_file=/path/to/output/output.txt

for i in `cat $list1 | awk '{print $1}'`
do
   echo -n "Processing $i"
   if [ `grep $i $list2` ]; then
     echo $i >> $output_file
     echo " - YES"
   else
     echo " - NO"
   fi
done

Hope this helps.

-Joshua
-----Original Message-----
From: Deim Agoston
To: ilug at linux.ie
Sent: 11/19/00 6:45 PM
Subject: [ILUG] users

Hi !

I've got two files one email address per line in each. I want to
separate
them in the way that if user1 has presence in both list take him/her out
and put into another file. Which tool would be thge best ? The lists has
28000 and 29000 addresses.
Thanks,
Ago


-- 
Irish Linux Users' Group: ilug at linux.ie
http://www.linux.ie/mailman/listinfo/ilug for (un)subscription
information.
List maintainer: listmaster at linux.ie




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell