From owner-freebsd-questions Fri Feb 1 9: 6:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web21209.mail.yahoo.com (web21209.mail.yahoo.com [216.136.175.167]) by hub.freebsd.org (Postfix) with SMTP id 60C6937B442 for ; Fri, 1 Feb 2002 09:05:53 -0800 (PST) Message-ID: <20020201170553.35965.qmail@web21209.mail.yahoo.com> Received: from [24.100.124.207] by web21209.mail.yahoo.com via HTTP; Sat, 02 Feb 2002 01:05:53 CST Date: Sat, 2 Feb 2002 01:05:53 +0800 (CST) From: =?iso-8859-1?q?adrian=20kok?= Subject: help about awk To: freebsd-questions@FreeBSD.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 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 TIA _______________________________________________________________________ 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