Date: Fri, 1 Feb 2002 10:04:13 -0800 From: "Crist J. Clark" <cristjc@earthlink.net> To: adrian kok <adriankok2000@yahoo.com.hk> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: help about awk Message-ID: <20020201100412.R152@gohan.cjclark.org> In-Reply-To: <20020201170553.35965.qmail@web21209.mail.yahoo.com>; from adriankok2000@yahoo.com.hk on Sat, Feb 02, 2002 at 01:05:53AM %2B0800 References: <20020201170553.35965.qmail@web21209.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 02, 2002 at 01:05:53AM +0800, adrian kok wrote:
> Hi all
>
> Could you teach me how to get (data1, data2) from the
> following pattern?
>
>
>
> mail home (100,00,000,'1111-2','89','data1');
> email home1 (200,01,001,'1112-2','80','data2');
>
>
>
>
> awk '{print $3}' ->
> (100,00,000,'1111-2','89','data1');
>
>
> But I only need data1 without ' ' eg the output
>
> data1
> data2
> data3
> data4
awk -F\' '{ print $6; }'
--
Crist J. Clark | cjclark@alum.mit.edu
| cjclark@jhu.edu
http://people.freebsd.org/~cjc/ | cjc@freebsd.org
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?20020201100412.R152>
