This should do the trick: grep \< oldfile.txt | awk -F "[<>]" '{print $2}' | tee newfile.txt You can also remove dupes using the `uniq` cmd: grep \< deleteme.txt | awk -F "[<>]" '{print $2}' | uniq ...Kevin On 6/5/06 4:14 PM, "Randy Melder" wrote: > : > Can't open mailbox for username1@yahoo.com. Temporary error > //I'm not going to try again; this message has been in the queue too long. ...Kevin | plug-discuss (at) firstpacket dot com --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss