From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Bretfeld Newsgroups: gmane.emacs.help Subject: Re: Easy way to rename files sequentially? Date: Sun, 25 Nov 2007 21:35:17 +0100 Message-ID: <87lk8mgj22.fsf@kamaloka.dhatu> References: <87ejeexgfy.fsf@celephais.home.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0964820210==" X-Trace: ger.gmane.org 1196022954 30517 80.91.229.12 (25 Nov 2007 20:35:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2007 20:35:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: cothrige Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 21:36:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IwOCu-0007WD-33 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 21:36:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwOCf-0004Dz-7h for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 15:35:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwOCS-0004Du-3l for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 15:35:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwOCP-0004Di-SH for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 15:35:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwOCP-0004Df-NG for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 15:35:29 -0500 Original-Received: from viefep27-int.chello.at ([62.179.121.47]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwOCP-0002uE-5z for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 15:35:29 -0500 Original-Received: from kamaloka.dhatu ([80.219.162.86]) by viefep27-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20071125203526.EXZB2373.viefep27-int.chello.at@kamaloka.dhatu>; Sun, 25 Nov 2007 21:35:26 +0100 In-Reply-To: <87ejeexgfy.fsf@celephais.home.net> (cothrige@yahoo.com's message of "Sun, 25 Nov 2007 13:39:45 -0600") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49512 Archived-At: --===============0964820210== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= cothrige 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHSdyJV5JTHLAduAYRAhpDAKCkUi7+UZ29cRF9ceT2FpeL/XraxgCgsMzu 0FsIBnPdDtT6b8Xm6uM+PBM= =B0vc -----END PGP SIGNATURE----- --=-=-=-- --===============0964820210== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0964820210==--