Skip to content

Commit d11b073

Browse files
committed
doc: Added GoPro example to README
1 parent 4d14363 commit d11b073

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
![](media/raf.gif)
66

7+
For example, you could use `raf` to rename GoPro video files so that they sort correctly when listed alphabetically:
8+
```bash
9+
$ raf -d -p 'chap=G[PHXL](\d{2})' -p 'seq=G[PHXL]\d{2}(\d{4})' -o 'GoPro_$seq_$chap$ext' *
10+
```
711

812
## Options:
913
* `--prop -p`: Specifies a regular expression to select a part of the file name and saves its value in the variable name. `<name>=<regex>`
@@ -30,4 +34,3 @@ The padding formatter is triggered with the `%` character and receives two param
3034

3135
## TODO
3236
- [ ] tests tests tests
33-
- [ ] Output formatting, for example $cnt[%03d] to obtain `001`

0 commit comments

Comments
 (0)