From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Noob dumb question (extending emacs) Date: Wed, 20 Oct 2021 20:41:41 +0200 Message-ID: <87sfwvil02.fsf@gnu.org> References: <877de88rcs.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8679"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.0; emacs 29.0.50 Cc: help-gnu-emacs@gnu.org, Emanuel Berg To: Ivano Da Milano <18101982.ia@gmail.com> Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 21:04:49 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 1mdGtM-00024m-II for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 21:04:48 +0200 Original-Received: from localhost ([::1]:48672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdGtK-0007kV-UI for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 15:04:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdGkp-0006Cj-Ab for help-gnu-emacs@gnu.org; Wed, 20 Oct 2021 14:55:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51572) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdGko-0007Au-RA; Wed, 20 Oct 2021 14:55:58 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:49577) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdGkc-0007qN-9o; Wed, 20 Oct 2021 14:55:53 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id B5D7527C0054; Wed, 20 Oct 2021 14:55:45 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 20 Oct 2021 14:55:45 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvgedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdr ohhrgheqnecuggftrfgrthhtvghrnhepveevieekteekveeigfefffeivdetgeduvdffue euudevgedttdehvdfhueevfffhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlih hthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgr shhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Oct 2021 14:55:44 -0400 (EDT) In-reply-to: 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:133929 Archived-At: Ivano Da Milano <18101982.ia@gmail.com> writes: >> > Batch rename >> >> I'm not sure exactly what you mean, but it is possible, either >> directly from Elisp or some solution/combination with/from >> Dired and/or the shell ... > > I mean renaming files all at once, applying string manipulation to the > file name Dired can rename files matched by a regexp, and use \N in the replacement to insert the string matched by the N-th group of the regexp, and there are also many other file transformations, see (info "(emacs) Transforming File Names"). Or even better: you can make a dired buffer writable and just edit what you are seeing there, i.e., filenames, and permissions, see (info "(emacs) Wdired"). Of course, you can also use keyboard macros when doing so, see (info "(emacs) Keyboard Macros"). Bye, Tassilo