From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Easy way to rename files sequentially? Date: Sun, 25 Nov 2007 13:19:01 -0800 (PST) Organization: http://groups.google.com Message-ID: <04fa5efd-411a-46ce-8bea-87c4a9559eb4@e10g2000prf.googlegroups.com> References: <87ejeexgfy.fsf@celephais.home.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196026896 11633 80.91.229.12 (25 Nov 2007 21:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2007 21:41:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 22:41:43 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 1IwPEU-0002Y4-NA for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 22:41:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwPEF-0004aT-Vx for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 16:41:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e10g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 69.236.97.82 Original-X-Trace: posting.google.com 1196025541 14545 127.0.0.1 (25 Nov 2007 21:19:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 25 Nov 2007 21:19:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e10g2000prf.googlegroups.com; posting-host=69.236.97.82; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12 (KHTML, like Gecko) Version/3.0.4 Safari/523.12, gzip(gfe), gzip(gfe) Content-Disposition: inline Original-Xref: shelby.stanford.edu gnu.emacs.help:154085 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:49517 Archived-At: See: * Rename Files by a Text Pattern http://xahlee.org/emacs/rename_file_pattern.html summary: Alt+x dired Alt+x dired-do-rename-regexp if this does not satisfy your creating sequencial numbers for file names... write back more pls and i'll try to help. (or the group) Xah xah@xahlee.org $B-t(B http://xahlee.org/ On Nov 25, 11:39 am, cothrige wrote: > 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? > > Patrick