Date: Sat, 2 Feb 2002 03:47:11 +0800 (CST) From: =?iso-8859-1?q?adrian=20kok?= <adriankok2000@yahoo.com.hk> To: cjclark@alum.mit.edu Cc: freebsd-questions@FreeBSD.ORG Subject: help about awk Message-ID: <20020201194711.53260.qmail@web21206.mail.yahoo.com> In-Reply-To: <20020201100412.R152@gohan.cjclark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Many thanks for help
I would like to ask one more question
How do I get the first column data without :
adrian: math
john: eng
paul: music
Output -->
adrian
john
paul
Thank you again
--- "Crist J. Clark" <cristjc@earthlink.net> wrote: >
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
_______________________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk
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?20020201194711.53260.qmail>
