info-cvs
[Top][All Lists]
Advanced

[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 13:27:03 -0500

find . -print | xargs sed -e ......

as stated earlier make sure it's safe first.

donald

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Euan
Guttridge
Sent: Friday, February 20, 2004 11:48 AM
To: address@hidden
Subject: RE: [OFT] scripting removal of $Id:


perfect, can you advance on that - to run from top level directory to
recurse through subdirectories - replacing each file with the edited
version?

-----Original Message-----
From: Rick Genter [mailto:address@hidden
Sent: 20 February 2004 16:28
To: Euan Guttridge; address@hidden
Subject: RE: [OFT] scripting removal of $Id:


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

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

Rick
--
Rick Genter
Sr. Software Engineer
Silverlink Communications
<mailto:address@hidden>
(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: address@hidden
[mailto:address@hidden On Behalf Of
Euan Guttridge
Sent: Friday, February 20, 2004 10:58 AM
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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]