[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn rename glob?

From: Toby Thain <toby_at_telegraphics.com.au>
Date: Sun, 11 Jan 2009 02:48:35 -0500

On 10-Jan-09, at 3:50 PM, Steve Cohen wrote:

> I wish to rename all files in a directory tree by changing their
> extension (keeping rest of filename the same) without losing history.
>
> Before I screw myself up can someone tell me if there is a way to do
> this with a single command line? If not, what would be the easiest
> way
> to perform this operation?

Recursively rename all '.c' to '.cpp' in current working copy directory:

$ find . -name \*.c |perl -n -e 'chomp; m/^(.*)\.[^\/]*$/ && system
("svn mv $_ $1.cpp")'

>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?
> dsForumId=1065&dsMessageId=1015782
>
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe_at_subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1016795

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-11 08:49:26 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.