mardi 30 mars 2010

Oneliner to generate email

I need email's adress to test a code who parse and grab name to make a dictionnary.
So i found this site : http://www.census.gov/genealogy/www/data/1990surnames/names_files.html
in two subdirectories there is male and female name. :)
Fast and dirty code with curl, cut and sort to grab and insert @asUwant.org
Let's dance :
paste -d "." <(curl http://www.census.gov/genealogy/www/data/1990surnames/dist.female.first http://www.census.gov/genealogy/www/data/1990surnames/dist.male.first | cut -d " " -f 1 | sort -uR) <(curl http://www.census.gov/genealogy/www/data/1990surnames/dist.all.last | cut -d " " -f 1 | sort -R | head -5163) | tr "[:upper:]" "[:lower:]" | sed 's/$/@elysee.fr/g' 
Dload Upload Total Spent Left Speed
100 146k 100 146k 0 0 199k 0 --:--:-- --:--:-- --:--:-- 247k
100 42665 100 42665 0 0 311k 0 --:--:-- --:--:-- --:--:-- 311k
5 3035k 5 169k 0 0 64179 0 0:00:48 0:00:02 0:00:46 67860^C
31 3035k 31 953k 0 0 167k 0 0:00:18 0:00:05 0:00:13 215k


gaye.comish@elysee.fr
darwin.cadriel@elysee.fr
burton.mccloe@elysee.fr
wade.palley@elysee.fr
monnie.deonarine@elysee.fr
kortney.greenough@elysee.fr
lakesha.parsh@elysee.fr
lauren.magierski@elysee.fr
hisako.naidu@elysee.fr
christiane.cooperstein@elysee.fr
terrell.grahe@elysee.fr
wilbert.tolle@elysee.fr
aurelio.motte@elysee.fr
marcellus.isabelle@elysee.fr
garland.lindamood@elysee.fr
wava.nguen@elysee.fr
warren.banerji@elysee.fr
candice.stelman@elysee.fr