You win the prize for the simplest syntax that works on my platform.
I've never been a big fan of perl but in this case, it rocked!
Thanks!
Toby Thain wrote:
> 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].
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1017206
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-11 17:01:01 CET