Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
signoredellarete committed Jul 21, 2023
1 parent 91d57cd commit 55db5f5
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,40 @@
> `YYYYMMDDHHmmss` is retrieved from the datetime metadata of the file.
**rename-arw** can also rename your jpg files assuming same name convention adopted for ARW files, the renamed files will have a sequential number in place of the original filename (EX. _DSC0270.ARW).

So assuming we have the file `_DSC0270.ARW` within the `DCIM` directory, i.e., a photo taken on June 3, 2023 at 19:32:37, we first proceed to rename it with the pattern example:
```
cd DCIM
rename-arw example
```
The file will be renamed as described below:
```
_DSC0270.ARW ---> 20230603193237-example_DSC0270.ARW
```
Then after importing it into Lightroom and developing the photo we will have a jpg file in the `OUT` directory with the following name:
```
20230603193237-example_DSC0270.jpg
```
Now we rename it with the `-j` option of the script:
```
cd OUT
rename-arw -j
```
The file will be renamed like this:
```
20230603193237-example_DSC0270.jpg ---> 20230603193237-example_1.jpg
```
When the directory contains more than one file, the script will produce a counter with a number of digits equal to the number of files in the directory.

For example if the directory contains 100 files we will have the counter at the end of the name with this format:
```
001
002
...
100
```

## Installation
> This script will work if the following commands are already in the system: `file`, `cut`, `tr`
Expand Down Expand Up @@ -40,11 +74,20 @@ sudo chmod +x /usr/local/bin/rename-arw
```

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

### ARW mode
Enter the directory containing `.ARW` files and run the commmand `rename-arw` followed by `<pattern>`.
```
cd <directory-containing-arw>
rename-arw <pattern>
```
### JPG mode
Enter the directory containing `.jpg` files and run the commmand `rename-arw -j`.
```
cd <directory-containing-jpg>
rename-arw -j
```

## Example
![image](https://github.com/signoredellarete/rename-arw/assets/37313214/5dedfa23-6b3d-4284-b641-41f7c584c339)

Expand Down

0 comments on commit 55db5f5

Please sign in to comment.