Skip to content

This is the repository of "rename-arw", a script for MAC OS & Linux, that operates in the folder in which it is launched and renames all the RAW files with `.ARW` extension following this format: `YYYYMMDDHHmmss-<pattern><filename>`

License

Notifications You must be signed in to change notification settings

signoredellarete/rename-arw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rename-arw

Description

rename-arw is a script, for MAC OS & Linux, that operates in the folder in which it is launched and renames all the RAW files with .ARW extension following this format:

YYYYMMDDHHmmss-<pattern><filename>

<pattern> must be provided by user.

YYYYMMDDHHmmss is retrieved from the datetime metadata of the file.

Installation

This script will work if the following commands are already in the system: file, cut, tr

Download main.zip and extract zip file, then:

cd rename-arw-main/
  • For Mac OS users:
sudo mkdir -p /usr/local/bin/
sudo chmod +x /usr/local/bin/
sudo cp rename-arw /usr/local/bin/
sudo chmod +x /usr/local/bin/rename-arw
echo 'PATH=$PATH:/usr/local/bin/' >> ~/.bashrc
  • For Linux users:
sudo cp rename-arw /usr/local/bin/
sudo chmod +x /usr/local/bin/rename-arw

Update

If rename-arw is already installed in your system and you want to update it, just download main.zip and extract zip file, then:

cd rename-arw-main/
sudo cp rename-arw /usr/local/bin/
sudo chmod +x /usr/local/bin/rename-arw

Usage

Enter the directory containing ARW files and run the commmand rename-arw followed by <pattern>.

cd <directory-containing-arw>
rename-arw <pattern>

Example

image

Notes

This little script was written for a friend who needed to automate the file renaming operation he used to perform manually on .ARW files generated by his camera, before importing them into Lightroom. New features and/or bug fixing will be add to this repository.

About

This is the repository of "rename-arw", a script for MAC OS & Linux, that operates in the folder in which it is launched and renames all the RAW files with `.ARW` extension following this format: `YYYYMMDDHHmmss-<pattern><filename>`

Topics

Resources

License

Stars

Watchers

Forks

Languages