help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy way to rename files sequentially?


From: Sven Bretfeld
Subject: Re: Easy way to rename files sequentially?
Date: Sun, 25 Nov 2007 21:35:17 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1.50 (gnu/linux)

cothrige <cothrige@yahoo.com> writes:

> I sometimes have a list of files which I would like to rename both in a
> group and in sequence.  In the past, for very long lists of files with a
> number in the name, e.g. "some random audio file ep 01 of 200.mp3", I
> would use thunar as it will very easily and automatically add a
> sequential number to the front of the names, resulting in 01-xxx.mp3 and
> so on.  Of course, there are many reasons I would rather not have to use
> thunar, and would prefer to be able to do it from within emacs.  I have
> managed to do this a few times using wdired and a keyboard macro, and
> this really isn't too bad.  But it seems there must be a better way to
> rename a list of files and sequentially number them.  Is there some
> relatively easy way to add such a numerical prefix to a list of files?

I don't know a good Emacs-solution (which no doubt exists). But if you
are under GNU, you should consider the program mmv which is most easy
to handle and does what you want. It should be contained in the repos
of all major distris.

Greetings

Sven

Attachment: pgpoSCnu1mpUt.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]