[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [OFT] scripting removal of $Id:
From: |
Donald Sharp \(sharpd\) |
Subject: |
RE: [OFT] scripting removal of $Id: |
Date: |
Fri, 20 Feb 2004 11:49:25 -0500 |
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: address@hidden
[mailto:address@hidden On Behalf Of Lemke,
Michael IZ/HZA-IOP
Sent: Friday, February 20, 2004 11:26 AM
To: 'Euan Guttridge'; address@hidden
Subject: RE: [OFT] scripting removal of $Id:
Hm how about:
sed -e '/\$Id:.*\$/ d'
Command line suffices.
Michael
> -----Original Message-----
> From: Euan Guttridge [mailto:address@hidden
> Sent: Friday, February 20, 2004 4:58 PM
> To: address@hidden
> 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
> address@hidden http://mail.gnu.org/mailman/listinfo/info-cvs
>
_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs