bighype
March 17th, 2009, 02:59 AM
Hi all,
I have a database dump that my DB buy gave me and I'd like to extract all the emails out of it. Basically, emails are in a txt file that has a lot of 'garbage in it'. Emails are separated by spaces.
What I'd like to do is just extract emails, one per line, and get rid of all the other junk.
I use Ubuntu but I'm not sure what would be the way to go about it to make it automated (I have about 1000 emails to extract).
Someone told me to use awk and regexp but I have no idea how to do that.
Could someone help me please? THANKS!
Mel
I have a database dump that my DB buy gave me and I'd like to extract all the emails out of it. Basically, emails are in a txt file that has a lot of 'garbage in it'. Emails are separated by spaces.
What I'd like to do is just extract emails, one per line, and get rid of all the other junk.
I use Ubuntu but I'm not sure what would be the way to go about it to make it automated (I have about 1000 emails to extract).
Someone told me to use awk and regexp but I have no idea how to do that.
Could someone help me please? THANKS!
Mel