[DOCS] find -exec

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

[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:

Code: 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:

Code: Select all

filebot -find --filter "f.video && minutes < 15" -exec scp {f} "[email protected]:/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: Please read the FAQ and How to Request Help.
Post Reply