Can't you do this with a one-liner using sed?

sed -e '/\$Id:.*\$/d'

Rick
--
Rick Genter
Sr. Software Engineer
Silverlink Communications
<mailto:[EMAIL PROTECTED]>
(781) 272-3080 x242

This e-mail, including attachments, may include confidential and/or
proprietary information, and may only be used by the person or entity to
which it is addressed.  If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited.  If you have received this e-mail in error, please notify
the sender by replying to this message and delete this e-mail
immediately.




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Euan Guttridge
Sent: Friday, February 20, 2004 10:58 AM
To: [EMAIL PROTECTED]
Subject: [OFT] scripting removal of $Id:

Has anybody come across a shell script to parse a large number of text
files, removing the CVS keyword replacement lines (all containing $Id:)?

For example 

input:
 package com.shop.backoffice;
 import javax.servlet.http.HttpServletRequest;
 /**
  * Test class for blah
  * $Id: blah.java,v 1.2.2.3 2004/01/21 10:03:04 jwilson Exp $
  */

output:
 package com.shop.backoffice;
 import javax.servlet.http.HttpServletRequest;
 /**
  * Test class for blah
  */

Thanks


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs



_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to