Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.questions Subject: Re: Pattern matching with awk Message-ID: <1991Mar07.185959.22018@convex.com> Date: 7 Mar 91 18:59:59 GMT References: <1991Mar7.013904.23421@doe.utoronto.ca> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 14 Nntp-Posting-Host: pixel.convex.com From the keyboard of peter@doe.utoronto.ca (Peter Mielke): :sed -e 's/\([a-zA-Z0-9.\-_%!]*\)@\([a-zA-Z0-9.\-_]*\)/machine: \2 userid: \1/' Did you actually try that? Does it work for multiple addrs on the same line? Does it print out a nice report free of the extra text? I don't think so. --tom -- I get so tired of utilities with arbitrary, undocumented, compiled-in limits. Don't you? Tom Christiansen tchrist@convex.com convex!tchrist