From owner-freebsd-questions Fri Feb 1 10:13:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 1020D37B402 for ; Fri, 1 Feb 2002 10:13:33 -0800 (PST) Received: from user-2ivfov0.dialup.mindspring.com ([165.247.227.224] helo=gohan.cjclark.org) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16WiBn-0005BU-00; Fri, 01 Feb 2002 10:13:32 -0800 Received: (from cjc@localhost) by gohan.cjclark.org (8.11.6/8.11.1) id g11I4Ef71157; Fri, 1 Feb 2002 10:04:14 -0800 (PST) (envelope-from cjc) Date: Fri, 1 Feb 2002 10:04:13 -0800 From: "Crist J. Clark" To: adrian kok Cc: freebsd-questions@FreeBSD.ORG Subject: Re: help about awk Message-ID: <20020201100412.R152@gohan.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20020201170553.35965.qmail@web21209.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020201170553.35965.qmail@web21209.mail.yahoo.com>; from adriankok2000@yahoo.com.hk on Sat, Feb 02, 2002 at 01:05:53AM +0800 X-URL: http://people.freebsd.org/~cjc/ 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 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