From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Butler, Mathew" Newsgroups: gmane.os.tru64.managers Subject: grep commands??? Date: Tue, 30 Jul 2002 14:55:20 +1000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <733D8705A187D511B62300B0D0D15C828ACE72@swires.au.logica.com> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1028004923 8720 127.0.0.1 (30 Jul 2002 04:55:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2002 04:55:23 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17ZP2U-0002Fq-00 for ; Tue, 30 Jul 2002 06:55:18 +0200 Original-Received: (qmail 15523 invoked by uid 5); 30 Jul 2002 04:55:32 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 15408 invoked from network); 30 Jul 2002 04:55:32 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 30 Jul 2002 04:55:32 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H01005UEPOJ2C@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 30 Jul 2002 00:55:32 -0400 (EDT) Original-Received: from mail4.messagelabs.com (mail4.messagelabs.com [212.125.75.12]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0H010091DPOGRU@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 30 Jul 2002 00:55:30 -0400 (EDT) Original-Received: (qmail 26110 invoked from network); Tue, 30 Jul 2002 04:55:28 +0000 Original-Received: from porgy.logica.co.uk (158.234.250.67) by server-3.tower-4.messagelabs.com with SMTP; Tue, 30 Jul 2002 04:55:27 +0000 Original-Received: from pearcey.au.logica.com ([128.129.220.79]) by porgy.logica.co.uk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id FAA20350 for ; Tue, 30 Jul 2002 05:55:26 +0100 Original-Received: by pearcey.au.logica.com with Internet Mail Service (5.5.2448.0) id ; Tue, 30 Jul 2002 14:55:23 +1000 Original-To: "Majordomo \(E-mail\)" X-Mailer: Internet Mail Service (5.5.2448.0) X-VirusChecked: Checked X-Authentication-warning: porgy.logica.co.uk: Host [128.129.220.79] claimed to be pearcey.au.logica.com Xref: main.gmane.org gmane.os.tru64.managers:1155 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1155 At the risk of going majorly off topic.... I need to be able to find all occurences of the string "{0, '\0'}" from many files. Within the files these are entries such as; VARCHAR GmtDay1[LEN_DATE] = {0,'\0'}; VARCHAR GmtDay2[LEN_DATE] = {0,'\0'}; I have been successfully been using 'find' with it's numerous swiches and getting find to call 'grep'. I have been trying to use grep to pick up the "{0, '\0'}" string. However, grep seems to interpret the '\' and the '{', '}' as special characters. Can anyone please tell me how I de-limit these so that I can pull out rows that satisfy this criteria from a file. Mat Mathew Butler logica Pty Limited, Consultant, Energy & Utilities Division, Australia 17-19 Orion Road, Lane Cove West, Sydney, NSW, 2066 Tel: + 61 (2) 9424 4623 Fax: + 61 (2) 9427 9490 E-Mail: butlergm@logica.com http://www.logica.com This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.