tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* grep commands???
@ 2002-07-30  4:55 Butler, Mathew
  0 siblings, 0 replies; only message in thread
From: Butler, Mathew @ 2002-07-30  4:55 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-30  4:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-30  4:55 grep commands??? Butler, Mathew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox