[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Easy way to rename files sequentially?
From: |
reader |
Subject: |
Re: Easy way to rename files sequentially? |
Date: |
Sun, 25 Nov 2007 17:34:28 -0600 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Maybe in your case this works:
>
> M-x replace-regexp RET ^.*$ RET \,(format "%03d%s" \# \&) RET
>
> i.e. use the complete original file name (\&) and prepend it by a
> zeroes padded three digit number (\# = number of already completed
> replacements, i.e. starting with 0). The format specification can of
> course contain additional text. But: dired does not understand \, nor
> \# in its regular expressions – or I am missing something!
How can this possibly do what the OP has asked about? It fails in my
case but you seem to have known that \. or \# wouldn't work in dired.
dired-string-replace-match: Invalid use of `\' in replacement text
So I guess I'm missing what the utility of your post was meant to be.
- Re: Easy way to rename files sequentially?, (continued)
Re: Easy way to rename files sequentially?, Xah Lee, 2007/11/25
- Re: Easy way to rename files sequentially?, reader, 2007/11/25
- Re: Easy way to rename files sequentially?, Peter Dyballa, 2007/11/25
- Re: Easy way to rename files sequentially?, reader, 2007/11/25
- Re: Easy way to rename files sequentially?, Peter Dyballa, 2007/11/26
- Re: Easy way to rename files sequentially?, reader, 2007/11/26
- Re: Easy way to rename files sequentially?, Peter Dyballa, 2007/11/26
- Re: Easy way to rename files sequentially?, reader, 2007/11/27
Re: Easy way to rename files sequentially?, Peter Dyballa, 2007/11/25
- Re: Easy way to rename files sequentially?,
reader <=
Re: Easy way to rename files sequentially?, Bastien, 2007/11/25
Message not available
Message not available