From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cothrige Newsgroups: gmane.emacs.help Subject: Re: Easy way to rename files sequentially? Date: Wed, 28 Nov 2007 03:36:06 GMT Organization: BellSouth Internet Group Message-ID: References: <87ejeexgfy.fsf@celephais.home.net> NNTP-Posting-Host: dough.gmane.org X-Trace: ger.gmane.org 1196251900 22683 80.91.229.10 (28 Nov 2007 12:11:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2007 12:11:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 13:17:21 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from mail-forward.uio.no ([129.240.10.42]) by dough.gmane.org with esmtp (Exim 4.50) id 1IxKwp-0004lX-Qb for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 12:19:19 +0100 Original-Received: from mail-mx9.uio.no ([129.240.10.39]) by pat.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1IxDp9-00010F-7T for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 04:42:55 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx9.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1IxDnu-00011F-TZ for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 04:41:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxDmt-0000Jh-Hl for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Nov 2007 22:40:35 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news.glorb.com!bigfeed2.bellsouth.net!bignumber.bellsouth.net!news.bellsouth.net!bignews4.bellsouth.net.POSTED!fb0cad44!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Lines: 16 Original-X-Complaints-To: abuse@bellsouth.net X-Abuse-Info: Please forward a copy of all headers for proper handling Original-X-Trace: npbhgpngjbkmjfegdbdpiflmbcekedmfhojhikkbagflhcbobkdmijgplnnmlmhenchpcpnnhmlafccffkhknhclgnebhmkhieljnheokeinfocpohpokmcfepkfjaomimgpppnnpmeocdanbhfokipbhgdhggfd Original-NNTP-Posting-Date: Tue, 27 Nov 2007 22:36:06 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:154184 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 X-UiO-SPF-Received: Received-SPF: pass (mail-mx9.uio.no: domain of gnu.org designates 199.232.76.165 as permitted sender) client-ip=199.232.76.165; envelope-from=help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org; helo=lists.gnu.org; X-UiO-ClamAV-Virus: No X-UiO-Spam-info: not spam, SpamAssassin (score=0.4, required=5.0, autolearn=disabled, FORGED_YAHOO_RCVD=1.408,RCVD_IN_DNSWL_LOW=-1) X-UiO-Scanned: FFF65DEA4F8C9F200B83C7895D6BE9DFD47F51C3 X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: 4 maxlevel 200 minaction 2 bait 0 mail/h: 15 total 27200 max/h 41 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.help:49617 Archived-At: On 2007-11-25, Peter Dyballa wrote: > > Does this example from the info pages, Regexp Replacement, help? > > For example, to add consecutively numbered strings like `ABC00042' > to columns 73 to 80 (unless they are already occupied), you can use > > M-x replace-regexp ^.\{0,72\}$ > \,(format "%-72sABC%05d" \& \#) Hmmm, this is quite interesting looking. I will have to try this next time. If I can get that to work then it sounds like just what I am looking for. Patrick