[CentOS] Awk help

Joseph L. Casale JCasale at activenetwerx.com
Mon Jun 23 18:30:54 UTC 2008

>It works OK on the test line you provided; my guess is your datafile
>has other lines that match "SMTP" in other fields of the source.

Yeah when I echo'ed a single email into it everything was fine, but the file wasn't. I looked at
it in vi and saw all the dos carriage returns so added a tr -d '\r' before the awk.

I will check out the sed statement, thanks!

More information about the CentOS mailing list