renaming many files

Linux for blind general discussion blinux-list at redhat.com
Fri Jan 22 21:46:02 UTC 2021


On January 22, 2021, Linux for blind general discussion wrote:
>    rename -v -n 's/^renewal talk //' "renewal talk *"

One small issue here...you will likely need the asterisk outside the
quotes:

  rename -v -n 's/^renewal talk //' "renewal talk "*

otherwise, this is my favorite solution for doing such renames.

If you use bash as your shell, you can even use the caret notation to
remove the -n when you're ready to run

  $ ^-n

-tim





More information about the Blinux-list mailing list