Posted on February 19, 2007 by cosjefExtract email addresses from a file. gawk ‘BEGIN { RS = “[.@]*[^-0-9A-Za-z_.@]+[.@]*” } /@/’ | uniq