From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22724 invoked from network); 25 Jun 2006 03:26:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Jun 2006 03:26:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 25786 invoked from network); 25 Jun 2006 03:25:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jun 2006 03:25:56 -0000 Received: (qmail 11450 invoked by alias); 25 Jun 2006 03:25:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10431 Received: (qmail 11440 invoked from network); 25 Jun 2006 03:25:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Jun 2006 03:25:49 -0000 Received: (qmail 24795 invoked from network); 25 Jun 2006 03:25:49 -0000 Received: from p54853bd1.dip0.t-ipconnect.de (HELO localhost) (84.133.59.209) by a.mx.sunsite.dk with SMTP; 25 Jun 2006 03:25:48 -0000 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.60) (envelope-from ) id 1FuLFq-0008Rw-4R for zsh-users@sunsite.dk; Sun, 25 Jun 2006 05:25:47 +0200 Date: Sun, 25 Jun 2006 05:25:45 +0200 (CEST) Message-Id: <20060625.052545.74742529.Meino.Cramer@gmx.de> To: zsh-users@sunsite.dk Subject: renameing numbered files From: Meino Christian Cramer X-Mailer: Mew version 4.2.53 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, in a directory there are a couple of file named: Example0092.txt Example0093.txt Example0094.txt Example0095.txt Example0096.txt Example0097.txt Example0098.txt Example0099.txt Example0100.txt Example0101.txt Example0102.txt which I want to rename to: Example0102.txt Example0103.txt Example0104.txt Example0105.txt Example0106.txt Example0107.txt Example0108.txt Example0109.txt Example0110.txt Example0111.txt Example0112.txt i.e. The first file of the new range should get the number of the file, which would be the next new one of the old range. The numbers themselves are only examples here, they could be of all range. How can I do this in a most zshy way? Thank you very much for any help in advance ! Keep zshing! mcc