From owner-freebsd-questions Thu Jan 17 11:12: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from router.windsormachine.com (windsormachine.com [206.48.122.28]) by hub.freebsd.org (Postfix) with ESMTP id AC13337B417 for ; Thu, 17 Jan 2002 11:12:04 -0800 (PST) Received: from localhost (mdresser_b@localhost) by router.windsormachine.com (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA28840; Thu, 17 Jan 2002 14:12:02 -0500 Date: Thu, 17 Jan 2002 14:12:02 -0500 (EST) From: Mike Dresser To: =?iso-8859-1?q?adrian=20kok?= Cc: Subject: Re: awk or sed In-Reply-To: <20020117190510.80351.qmail@web21206.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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