[DOCS] -exec custom post-process commands

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 16615
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[DOCS] -exec custom post-process commands

Post by rednoah » 14 Sep 2019, 19:43

The -exec option can be added to -rename to call post-processing commands on newly renamed files, or to -mediainfo to call commands on selected files, similar to how find -exec works.


e.g. call echo for each file:

Code: Select all

-exec echo {f}

e.g. call chmod and pass in all files as arguments at once:

Code: Select all

-exec chmod -v 644 {f} +

e.g. call mkvpropedit on each file and set the embedded media title:

Code: Select all

-exec mkvpropedit {f} --edit info --set title={object}
:idea: Please read the FAQ and How to Request Help.

Post Reply