I'd be carefull about using that line as part of a blind search and
removal.
$Id:.* is very legal syntax with perl code.  Having said that a dry run
would 
quickly let you know if it was going to cause you problems.

donald

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lemke,
Michael IZ/HZA-IOP
Sent: Friday, February 20, 2004 11:26 AM
To: 'Euan Guttridge'; [EMAIL PROTECTED]
Subject: RE: [OFT] scripting removal of $Id:


Hm how about:

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

Command line suffices.

Michael


> -----Original Message-----
> From: Euan Guttridge [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 20, 2004 4:58 PM
> 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



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

Reply via email to