Pattern matching with awk
Tom Christiansen
tchrist at convex.COM
Fri Mar 8 04:59:59 AEST 1991
>From the keyboard of peter at 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 at convex.com convex!tchrist
More information about the Comp.unix.questions
mailing list