Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2002 13:22:08 -0600
From:      Doug Poland <doug@polands.org>
To:        Mike Dresser <mdresser_b@windsormachine.com>
Cc:        adrian kok <adriankok2000@yahoo.com.hk>, freebsd-questions@FreeBSD.ORG
Subject:   Re: awk or sed
Message-ID:  <20020117132208.C8746@polands.org>
In-Reply-To: <Pine.LNX.4.33.0201171409040.27014-100000@router.windsormachine.com>; from mdresser_b@windsormachine.com on Thu, Jan 17, 2002 at 02:12:02PM -0500
References:  <20020117190510.80351.qmail@web21206.mail.yahoo.com> <Pine.LNX.4.33.0201171409040.27014-100000@router.windsormachine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 17, 2002 at 02:12:02PM -0500, Mike Dresser wrote:
> On Fri, 18 Jan 2002, [iso-8859-1] adrian kok wrote:
> 
> > Hello
> >
> > I have 5 columns in the text file. But I only want to
> > have the third column data
> >
> > How do I take it?
> 
> does
> 
> cat filename | awk '{print $3}'
> 
> do what you want?  replacing cat with whatever you want, of course.
> 
perhaps 

	awk '{print $3}' filename 

is more straightforward


-- 
Regards,
Doug

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?20020117132208.C8746>