Force renaming even if the operation would remove existing destination files

rename

  • Rename multiple files.
    NOTE: this page refers to the command from the `rename` Debian package.
    More information: <https://manned.org/file-rename>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

rename -f {{'s/foo/bar/'}} {{*}}

click the source code to copy install rename on any operating system with command-not-found.com