|
From: | Jean Louis |
Subject: | Re: How to rename files to numbers in Eshell? |
Date: | Tue, 14 Sep 2021 12:17:33 +0300 |
User-agent: | Mutt/2.0.7+183 (3d24855) (2021-05-28) |
* Felix E. Klee <felix.klee@inka.de> [2021-09-14 10:43]: > 3. M-x query-replace-regexp > > [^ ]+jpg → \,(1+ \#).jpg > > Result: > > drw-r--r-- 1 40K Sep 13 22:08 . > drw-r--r-- 1 24K Sep 13 22:08 .. > -rw-r--r-- 1 5 Sep 13 09:37 1.jpg > -rw-r--r-- 1 5 Sep 13 09:37 2.jpg > -rw-r--r-- 1 282 Jun 20 2020 desktop.ini > -rw-r--r-- 1 625K Sep 13 22:00 3.jpg > -rw-r--r-- 1 385K Sep 13 22:01 4.jpg > -rw-r--r-- 1 1.1M Sep 13 22:02 5.jpg Thanks for example. Though it would be good to have the zero padding for cases when there are more files than 9 to later easier sort them. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
[Prev in Thread] | Current Thread | [Next in Thread] |