Date: Thu, 7 Mar 2002 22:08:21 +0100 From: Cliff Sarginson <csfbsd@raggedclown.net> To: "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org> Subject: Re: Quick text processing question Message-ID: <20020307210821.GC484@raggedclown.net> In-Reply-To: <5A617D4D38B5D51192AA0060081849455DD82D@501sumail1.vdot.state.va.us> References: <5A617D4D38B5D51192AA0060081849455DD82D@501sumail1.vdot.state.va.us>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 07, 2002 at 02:54:59PM -0500, Pieckiel, Kevin A wrote: > I don't know sed, awk, or Perl. But I know one (or more) of these-- > and probably several other tools--can do what I need. > > Please help me contruct a command line that will take a single > line of text and extract an E-Mail address from it. For example: > > freebsd-questions@freebsd.org > "Kevin A. Pieckiel" <kevin.pieckiel@virginiadot.org> > From: An Internet User <user@inter.net> > > When each line is run thru the command line for which I ask, > I should get: > > freebsd-questions@freebsd.org > kevin.pieckiel@virigniadot.org > user@inter.net > > Your help is appreciated. > I think the best help is to say .. "now is a good time to learn one of these tools". Of the three, sed is probably the simplest to start with. -- Regards Cliff Sarginson -- <csfbsd@raggedclown.net> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020307210821.GC484>