[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to rename files to numbers in Eshell?

From: Michael Heerdegen
Subject: Re: How to rename files to numbers in Eshell?
Date: Fri, 17 Sep 2021 00:37:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Felix E. Klee" <> writes:

> Jean Louis <> writes:
> > Will it work on marked files?
> Never had that use case, but interesting question.  I tried:
>     ^\*\(.*\)[^ ]+jpg → \1\,(1+ \#).jpg
> However, that doesn’t work because the part before the file name is not
> editable:
>     Replaced 0 occurrences (skipped 3 read-only)
> I had three files selected.

One working method is: limit the buffer to the marked files, e.g. with t
(`dired-toggle-marks') and k (`dired-do-kill-lines').  g
(`revert-buffer') to get the killed lines back when done.  k only
affects display, it doesn't perform any file operation.

Some third party packages allow to display marked files in a fresh dired


reply via email to

[Prev in Thread] Current Thread [Next in Thread]