write a quick perl script that'll extract all the emails. can't remember the name of the module that extracts emails of the top of my head. but if you search cpan you should find it easily enough. a little goolging should turn up smple code that'll perform the task. seems like a pretty common task to perform.
try this
perl -wne'while(/[\w\.]+@[\w\.]+/g){print "$&\n"}' test.txt
|