From owner-freebsd-questions Fri Feb 1 11:47:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web21206.mail.yahoo.com (web21206.mail.yahoo.com [216.136.175.8]) by hub.freebsd.org (Postfix) with SMTP id 9256337B404 for ; Fri, 1 Feb 2002 11:47:11 -0800 (PST) Message-ID: <20020201194711.53260.qmail@web21206.mail.yahoo.com> Received: from [24.100.124.207] by web21206.mail.yahoo.com via HTTP; Sat, 02 Feb 2002 03:47:11 CST Date: Sat, 2 Feb 2002 03:47:11 +0800 (CST) From: =?iso-8859-1?q?adrian=20kok?= Subject: help about awk To: cjclark@alum.mit.edu Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20020201100412.R152@gohan.cjclark.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 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" 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