Since it's a slow night on the list I thought I'd ask an OT question too.  
It doesn't directly pertain to SA but it does pertain to anti-spam fun.  
Please excuse it nevertheless.

Background:  I have a text file of userids.  It's has a very large number
of userids.  I can quickly append one of a number of domains to each of
those lines if needed to make each line contain a completely functional
email address.

Problem:  I need to extract a random sampling of these lines.  For example
I need to randomly extract 5000 of them so I can use them for a variety of
purposes. :)  I'm primarily using these addresses from the CLI with a
little bash for loop and Curl (ah hem).  I need to be able to randomize
the userids so they are quite so obivous.  I also need to limit the total
number of random entries to say 5000 (more than that and it should be
obvious what I'm doing to even someone as dumb as a spammer).  In the end
I'd like to choose one of my domains at random as well.  (the plot
thickens...)

What I don't know how to do is randomly pick a line from a file.  Like I
said I'm doing this from the CLI where it only takes a nominal amount of
shell scripting to have a working product in the end.  Any tips would be
greatly welcomed.  All of my work comes back to benefit us all in the end,
as long as you're a *zor user.

If you want more details, ask off list.  Thanks

Justin



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to