Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2002 14:12:02 -0500 (EST)
From:      Mike Dresser <mdresser_b@windsormachine.com>
To:        =?iso-8859-1?q?adrian=20kok?= <adriankok2000@yahoo.com.hk>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: awk or sed
Message-ID:  <Pine.LNX.4.33.0201171409040.27014-100000@router.windsormachine.com>
In-Reply-To: <20020117190510.80351.qmail@web21206.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

mike


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?Pine.LNX.4.33.0201171409040.27014-100000>