Login | Register
My pages Projects Community openCollabNet

Discussions > users [DISABLED] > Re: svn rename glob?

subversion
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

Re: svn rename glob?

Author janhendrik
Full name Jan Hendrik
Date 2009-01-12 01:08:15 PST
Message Concerning Re: svn rename glob?
Steve Cohen wrote on 11 Jan 2009, 9:59, at least in part:

> 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!

Yeah, that was quite condensed. While I do a lot in Perl - when it
comes to any sort of search&replace I never became warm with
Python - I have one objection: these commandlines are easily fired,
but leave little control. Only afterwards one really sees what they
did, and if the prompt was closed in the meantime one never can
find out what was wrong in the first place.

Jan Hendrik
>
> 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.ti​gris.org/ds/viewMess​age.do?
> >> dsForumId=1065&d​sMessageId=1015782
> >>
> >> To unsubscribe from this discussion, e-mail: [users-
> >> unsubscribe@subversi​on.tigris.org].
> >>
> >
> > --------------------​--------------------​--------------
> > http://subversion.ti​gris.org/ds/viewMess​age.do?dsForumId=106​5&dsMess
> > ageId=1016795
> >
> > To unsubscribe from this discussion, e-mail:
> > [users-unsubscribe@s​ubversion.tigris.org​].
> >
> >
> >
>
> --------------------​--------------------​--------------
> http://subversion.ti​gris.org/ds/viewMess​age.do?dsForumId=106​5&dsMessag
> eId=1017206
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@s​ubversion.tigris.org​].


--------------------​-------------------
Freedom quote:

     Freedom is the right to question and change
     the established way of doing things.
     It is the continuous revolution of the marketplace,
     and the understanding that allows us to recognize shortcomings
     and seek solutions.
               -- Ronald Reagan

« Previous message in topic | 7 of 15 | Next message in topic »

Messages

Show all messages in topic

svn rename glob? stevecoh1 Steve Cohen 2009-01-10 12:50:46 PST
     Re: svn rename glob? janhendrik Jan Hendrik 2009-01-10 13:06:32 PST
     Re: svn rename glob? bjz Blair Zajac 2009-01-10 19:23:30 PST
         Re: svn rename glob? "David Weintraub" <qazwart at gmail dot com> "David Weintraub" <qazwart at gmail dot com> 2009-01-12 11:24:05 PST
     Re: svn rename glob? qu1j0t3 Toby Thain 2009-01-10 23:48:39 PST
         Re: svn rename glob? stevecoh1 Steve Cohen 2009-01-11 07:59:58 PST
             Re: svn rename glob? janhendrik Jan Hendrik 2009-01-12 01:08:15 PST
                 Re: svn rename glob? stevecoh1 Steve Cohen 2009-01-12 05:04:00 PST
                     Re: svn rename glob? qu1j0t3 Toby Thain 2009-01-12 06:51:05 PST
                         Re: svn rename glob? janhendrik Jan Hendrik 2009-01-12 07:29:26 PST
                 RE: svn rename glob? "Reedick, Andrew" <jr9445 at ATT dot COM> "Reedick, Andrew" <jr9445 at ATT dot COM> 2009-01-12 06:54:30 PST
                     RE: svn rename glob? janhendrik Jan Hendrik 2009-01-12 08:02:46 PST
                     Re: svn rename glob? qu1j0t3 Toby Thain 2009-01-14 12:59:14 PST
     Re: svn rename glob? helgek Helge Kruse 2009-01-11 02:52:21 PST
     Re: svn rename glob? helgek Helge Kruse 2009-01-12 03:02:13 PST
Messages per page: