From owner-freebsd-questions Thu Mar 7 11:55: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fw.vdot.state.va.us (vdot.state.va.us [198.176.41.2]) by hub.freebsd.org (Postfix) with SMTP id 9DC5337B402 for ; Thu, 7 Mar 2002 11:54:52 -0800 (PST) Received: from [10.15.48.4] by fw.vdot.state.va.us via smtpd (for hub.FreeBSD.org [216.136.204.18]) with SMTP; 7 Mar 2002 19:54:52 UT Received: by 501sumail1.vdot.state.va.us with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Mar 2002 14:55:08 -0500 Message-ID: <5A617D4D38B5D51192AA0060081849455DD82D@501sumail1.vdot.state.va.us> From: "Pieckiel, Kevin A" To: "'freebsd-questions@freebsd.org'" Subject: Quick text processing question Date: Thu, 7 Mar 2002 14:54:59 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" From: An Internet User 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. TIA! Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message