“apt install rename”の冗長な実行結果を見る
$ su -
パスワード:
# apt install rename
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
rename
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.0 kB of archives.
After this operation, 62.5 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 rename all 2.01-1 [21.0 kB]
Fetched 21.0 kB in 0s (99.8 kB/s)
Selecting previously unselected package rename.
(Reading database ... 274134 files and directories currently installed.)
Preparing to unpack .../archives/rename_2.01-1_all.deb ...
Unpacking rename (2.01-1) ...
Setting up rename (2.01-1) ...
update-alternatives: using /usr/bin/file-rename to provide /usr/bin/rename (rename) in auto mode
Processing triggers for man-db (2.11.2-2) ...
# exit
logout
$
これで,正規表現を使ってファイル名を変更できます.