Select one or more files to generate commands for renaming them with their last modified date prefixed.
This web page helps you generate batch renaming commands for your files. It takes selected files, prefixes their last modified date (in YYYY-MM-DD format) to their original names, and then creates a list of commands that you can run in your terminal to perform the renaming.
mv
(move/rename) commands.ren
(rename) commands.rename_files.sh
(if "mv" was selected): A shell script for Linux/macOS, starting with #!/usr/bin/env bash
.rename_files.cmd
(if "ren" was selected): A batch script for Windows, starting with @echo off
.rename_files.sh
or rename_files.cmd
) needs to be placed and run from the same folder where the files you want to rename are located. If you run it from a different location, the commands won't be able to find your files..sh
files (Linux/macOS): Before you can run the rename_files.sh
script, you might need to make it executable. To do this, open your terminal in the folder where you saved the .sh
file and type the command: chmod +x rename_files.sh
. After doing this once, you can run the script by typing: ./rename_files.sh
.General Note: Always review the generated commands within the script before running it, especially if your filenames contain unusual characters. This tool attempts to handle common cases, but complex filenames might require manual adjustments to the commands inside the script.
HandfulOfTools.com is your go-to online resource for a diverse collection of practical and easy-to-use tools. Whether you need to calculate, convert, or solve, our website aims to provide simple solutions for a wide range of everyday tasks and specialized needs. Explore our growing selection of utilities designed to make your life easier!