Filter by extensions

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
mapomme1108
Posts: 7
Joined: 04 Jun 2015, 09:18

Filter by extensions

Post by mapomme1108 »

Hello

I use filebot in command line on a NAS to rename my films.

I want to know how to make FileBot takes into account only the files with certain extensions: avi, mkv, etc.

In advance thank you for your help.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filter by extensions

Post by rednoah »

FileBot, by default, does only process media files (video/subtitle/audio/etc). If you only want to process a certain type of file, then I recommend using find | xargs | filebot commands to select the files you want, and pass them on the filebot as arguments.

e.g.

Code: Select all

find /path/where/you/want/to/search/ -name "*.mp4" -print0 | xargs -0 filebot -rename ...
:idea: Please read the FAQ and How to Request Help.
mapomme1108
Posts: 7
Joined: 04 Jun 2015, 09:18

Re: Filter by extensions

Post by mapomme1108 »

Ok, thank you, I will try this
Post Reply