From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cothrige Newsgroups: gmane.emacs.help Subject: Easy way to rename files sequentially? Date: Sun, 25 Nov 2007 13:39:45 -0600 Organization: BellSouth Internet Group Message-ID: <87ejeexgfy.fsf@celephais.home.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196019644 19643 80.91.229.12 (25 Nov 2007 19:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2007 19:40:44 +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 20:40:52 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 1IwNLW-0000cl-T2 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 20:40:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwNLI-0000v3-1V for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 14:40:36 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.glorb.com!bigfeed2.bellsouth.net!bignumber.bellsouth.net!news.bellsouth.net!bignews5.bellsouth.net.POSTED!fb0cad44!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:3T6nqA5mjW7RFQsa8d73i/WXk8Q= Original-Lines: 15 Original-X-Complaints-To: abuse@bellsouth.net X-Abuse-Info: Please forward a copy of all headers for proper handling Original-X-Trace: ldjgbllpbapjglppdbdpiflmbcekedmfhojhikkbagflhcbonhlfijcomnnfpkhnfjpgfmiabobgdcaafkhknhclgnebhmkhdflnippfpnknegmcohpokmcfepkfjaomnlaapbpilklfnpbapiemmhgefmiapjod Original-NNTP-Posting-Date: Sun, 25 Nov 2007 14:30:39 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:154079 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:49511 Archived-At: 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