Run -exec Option For A Single File

Any questions? Need some help?
Post Reply
HarryMuscle
Posts: 34
Joined: 06 Jan 2022, 22:40

Run -exec Option For A Single File

Post by HarryMuscle »

Should be a basic question, but for some reason I can't get this figured out. How do I use the -exec option with FileBot and run it against a single file?

I can for example do the following to run a script against a single file

Code: Select all

filebot -script fn:nfo "/location/file.mp4"
or the following to use the -exec option against a filter

Code: Select all

filebot -find /location --filter f.video -exec echo "{ ... }"
but trying to use the -exec option like this against a single file

Code: Select all

filebot -exec "echo { ... }" "/location/file.mp4"
or like this

Code: Select all

filebot "/location/file.mp4" -exec echo "{ ... }"
fails with FileBot just doing nothing. I'm missing something obvious here.

Thanks,
Harry
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Run -exec Option For A Single File

Post by rednoah »

:arrow: [DOCS] find -exec


e.g. create sample file:

Code: Select all

$ date > date.txt
e.g. call filebot, pass sample file along as first and only argument:

Code: Select all

$ filebot -find ./date.txt -exec file {f}
/path/to/date.txt: ASCII text
:idea: Please read the FAQ and How to Request Help.
Post Reply