Simple change extension?

Any questions? Need some help?
Post Reply
garyleecn
Donor
Posts: 114
Joined: 19 Nov 2014, 03:48

Simple change extension?

Post by garyleecn »

Just wondering, if it’s possible to, monitor a certain folder XXX, and its sub folders, and rename certain extension to another. Like
Monitor

Code: Select all

/volume1/
And change

Code: Select all

/volume1/01/123.tiff to /volume1/01/123.arw
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Simple change extension?

Post by rednoah »

1.
If you are using the Desktop application, then you can use Plain File Mode and set Extension: Override.


2.
If you are using the command-line, then you'll want to use a simple shell script:
https://unix.stackexchange.com/a/149725

:idea: "volume1" suggests that you're using Synology NAS. Debian tools such as rename and inotifywait that we would typically use for this kind of use case might not be available. However, the solution in the link above only uses find and mv so it'll work on any Linux machine, and we can then use Synology Scheduler to call that automatically once a day.
:idea: Please read the FAQ and How to Request Help.
Post Reply