Another 1 minute Perl trick. j # tail -f mail | perl -nle '/(to=\S+).*(stat=\S+)/ && print "$2 $1"' stat=Sent to=<jerry.a.moore@irs.gov>, stat=Sent to=velocity@uic.edu, stat=Sent to=<diwilkie@uic.edu>, stat=Sent to=AWSZWEZ@YAHOO.COM, stat=Sent to=<velocity@uic.edu>, stat=Sent to=<AWSZWEZ@YAHOO.COM>, stat=Sent to=<ccadcollections@yahoo.com>,