From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: How to rename files to numbers in Eshell? Date: Fri, 17 Sep 2021 00:47:09 +0200 Message-ID: <87a6kcp28i.fsf@web.de> References: <87tuirckxp.fsf@inka.de> <87ee9u2neh.fsf@inka.de> <87o88vppqk.fsf@inka.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6871"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: "Felix E. Klee" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 17 00:47:42 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mR0AP-0001WH-PF for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Sep 2021 00:47:41 +0200 Original-Received: from localhost ([::1]:55026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mR0AN-0007B8-M6 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Sep 2021 18:47:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mR0A0-0007An-Nt for help-gnu-emacs@gnu.org; Thu, 16 Sep 2021 18:47:16 -0400 Original-Received: from mout.web.de ([212.227.17.12]:41323) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mR09z-0004zM-59 for help-gnu-emacs@gnu.org; Thu, 16 Sep 2021 18:47:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1631832432; bh=CgLnSQd0HBYCMuY8xKrkETPAtAappfoR8J500AUtKAk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=BjklTZ2fT4VNaJNjILRVDRmEaQqRLWLLNDiJjFENIB3tyWNPWHG3MD8kDgl1Vif9X 0UToyCfOpTTWdMfRI1+cprZIzYm6iHJUWFqBbwan+10FcgFd0LOuaAljAAABX1mJLh 5GeKxG+YHQq52T5rQTbw6TJUgRr+/oSGOZPi1lWA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([217.247.77.50]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LpO4v-1n5J7V2DtV-00f6zE; Fri, 17 Sep 2021 00:47:12 +0200 In-Reply-To: (Jean Louis's message of "Tue, 14 Sep 2021 12:17:33 +0300") X-Provags-ID: V03:K1:rZT2TvAjaIrdMEW0vo82onlpYqcsgMu3JYGafjOMdD3btVP3Riy LN3aMzeTzkFLpTDzZ2FqcVEvxnrhf7tCECSEod46E9v8drIZ/Gdvmj0H92IjTIpFCZQ1y3i OdnNIVtF14GLES8JzXcK2xg5cpLLyUDoOnHUhyX0phngZMeG2d74LWW9qwp61dTVPnfXUaH zpbNVLUhHKga2j6nglZGQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:1xIpDWUxH/U=:jKpW+jyXJfPJNRQYu4Abb1 3q2cJ6e8NOMZP95jlhyqaqQXgHluRE6Byi/USnrPOPptz9zYFHwVDmBimTUZvVSKo8G2IDHgi AS23l/U6JWOokxOF9E+JmYYgAFUFXnECEVvuvoWF7jd2PPcZ3BTDgaLOepq6xwhzkHx5Tlpr+ tZd9f3ItNhVDRE97/BgVhyzHwbOxlJwtQmQ87BlyttfGbYyU8ZrZ5QyMWhgmIj41DjDI4qI9+ FMf/52fJHG5TrCLrSHCVCv255ywIo66zwdnuhcg14buHt0HzNENV8s7YoeXcfI9j9rcAHtIsO PrG8o5txKkshLMUQsETgnE1SkzaECXnuITcu+DcZUc8X/b8X6iSHABm81ftJkY90uD7TViuiL Dp2EIqIP3ggw3IS621HOmc+3K+LvnRr0P+6IFdxotjAe3Ws/F4fheQABLkd43sb0HrpvLbvd+ pFaqL/PjP4wVaLAKnedLLOd1Hz5MCC8G4tjBFT+QWL3Xlooc23jDQLCD6Fv6OAqQ76mSqOlac RS05HqjsdejEExNpeYgZ3ZUdjDU/oXM8+6LzNVvOypur1V0FIaFotmCwf7sy+xh1l5O5GFA9H 38JxMaVN9wBfkFwAUelmAKdKu4y+vVBeI0w+TgsUuwtdj8isGkiroNA3BMmKZJktUp42bE1Wu /BP0glB3sXhFLZw893AKd1+Syb2E6o/xoc0gZ9mJ8Tub3dM/O1zjFxDzQqBBuDckOKH8PsGPi z0DPfiqEEZb0ruLcZIwGNufAYrUew+HkvE4SmTB6L6JlzqMvsHCUh6FPZ+qGhmU783Vw6VeP Received-SPF: pass client-ip=212.227.17.12; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133074 Archived-At: Jean Louis writes: > Though it would be good to have the zero padding for cases when there > are more files than 9 to later easier sort them. Instead of query-replace most of the time I am quite happy with rectangle commands (C-x r k - `kill-rectangle' and C-x r N - `rectangle-number-lines'). I kill any files lines that are in the way with k before I enter wdired and mark a rectangle. If you call `rectangle-number-lines' with a prefix arg you are prompted for a starting number and a FORMAT string. If you choose, for example, "%03d", you get zero padding for three digits. Michael.