[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: Wed, 14 Jan 2009 15:59:07 -0500

On 12-Jan-09, at 9:54 AM, Reedick, Andrew wrote:

>> -----Original Message-----
>> From: Jan Hendrik [mailto:list.jan.hendrik_at_gmail.com]
>> ...
>>
>>>>
>>>> $ find . -name \*.c |perl -n -e 'chomp; m/^(.*)\.[^\/]*$/ &&
> system
>>>> ("svn mv $_ $1.cpp")'
>>>>
>>>>
>
>
> ...
>
> Also, you didn't wrap the filenames in quotes. If any of the
> filenames
> had whitespace in them, the command would have failed: print qq
> (svn mv
> "$_" "$1.cpp"\n).
>

Quite so, I was going to mention this in a followup but felt it was
too obvious.

--Toby

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-14 22:00:20 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.