Extracting distinct e-mails from a large text file

Submitted by geekwisdom on Fri, 2008-09-05 13:51.
perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' BigFileContainingEmails.txt | sort -u > output.txt

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Submitted by hahaha on Sun, 2008-12-28 14:59.