[DOCS] find -exec

How-to guides, frequently asked questions, not-so-obvious features, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[DOCS] find -exec

Post by rednoah »

filebot -find is a powerful replacement for find and find -exec that works on all platforms.


e.g. find short video files:

Shell: Select all

filebot -find --filter "f.video && minutes < 15"

e.g. find short videos and then scp them to a remote server with new shell-friendly file names:

Shell: Select all

filebot -find --filter "f.video && minutes < 15" -exec scp {f} "user@host:/volume1/videos/{fn.ascii().clean().space('_')}.{ext}"
{f} ... file path
{fn} ... file name without extension
.ascii() ... transliterate to ASCII
.clean() ... remove brackets
.space('_') ... replace whitespace with underscore
{ext} ... file extension


:idea: filebot -find and filebot -mediainfo -r . --format {f} are functionally equivalent.


:idea: The --file-order option can be used to process files in a specific order (e.g. Last-Modified time in descending order) instead of input argument order.
:idea: Please read the FAQ and How to Request Help.
Post Reply