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.
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
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
cd <directory-containing-arw>
rename-arw <pattern>
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.