Batch file renamer for Yandex Disk

This script simplifies the tasks of renaming a bunch of files, which can be pretty tedious to do manually.

Example use cases

  1. Remove a prefix (like IMG_) from all file names in a folder with photos.
  2. Rename photos so that the new name contains the date that the picture was taken based on its Exif date.

Both use cases can be handled with the node version below. The shell version won't handle the second use case.

Downloads

  • Extended version. Allows for dynamic placeholders in replacement patterns, such as the Exif date-time.

    Usage example:

    $ node yd_rename.js -p photos -c "^IMG_" -m "^.*$" -r "{exif_d_t}.{ext_l}"
  • Usage example:

    $ sh yd_rename.sh -p photos -m "^IMG_" -r ""

Run the script with the --help flag for more details.