Forrest logo
back to the rename tool

rename:tldr:423ef

rename: Change file extensions.
$ rename ${-ext} ${-bak} ${*-ext}
try on your machine

This command is using the "rename" command to rename files. Here is a breakdown of each part of the command:

  1. "${-ext}" - This is a variable value that represents the file extension of the file(s) you want to rename.

  2. "${-bak}" - This is another variable value that represents the desired new file extension you want to replace the original extension with.

  3. "${*-ext}" - This variable value represents the filename without the original file extension.

In summary, this command is designed to rename a file by replacing its existing file extension (${ext}) with a new file extension (${bak}). The "${*-ext}" part is used to get the filename without the original extension.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the rename tool