16 Jan
2023
16 Jan
'23
11:26
On Mon, 16 Jan 2023 09:07:30 +0100 Simon Becherer <simon@becherer.de> wrote:
Hi,
i have to rename hunderts of files: 792041_100029699.mi 792090_100029501.mi . . . to 792041.mi 792090.mi . . .
i tried: rename ??????_*.mi ??????.mi *.mi
rename: ??????_.mi: kein Zugriff: Datei oder Verzeichnis nicht gefunden as you see, no sucess.
(first file is gone, all others stay as they are)
is there a easy way to do this (without writing a script)?
Yes, RTFM ! :) man rename and look at the example for shortening file names. In particular the quoting. It might also be useful to consider -v -n first.
simoN