[bash] FileBot Command-Line Usage Examples
Posted: 26 Feb 2017, 19:36
⭑⭑ A more beginner-friendly set of filebot usage examples is being curated via command.md on GitHub. ⭑⭑
Call filebot with many files:
Call filebot for each folder:
Rename files and episodes in linear order:
Rename files and episodes in linear order using --filter to select a specific interval of episodes:
Create empty test files:
Set the Last Modified Date for each media file to the episode airdate or movie release date:
Create new structure with Jackie Chan movies:
Create new structure by genre:
Create new structure by director:
Move old movies:
Copy recently aired episodes:
List Science Fiction movies:
Delete non-English subtitles:
Rename and organize photos by date taken:
Organize photos by year:
Organize photos by camera:
Organize photos by country:
View xattr metadata for each file:
Sum up the total runtime of all video files:
Call filebot with many files:
Shell: Select all
find . -type f -iname '*.mp4' -exec filebot -script fn:sysenv {} +
Shell: Select all
find . -type d -exec filebot -rename -non-strict {} ';'
Shell: Select all
filebot -list --q Firefly --filter regular --format {plex.name} -rename *.mp4
Shell: Select all
filebot -list --q "The Daily Show" --filter "airdate >= /2007-01-08/" -rename -r .
Shell: Select all
filebot -list --q Alias --filter regular --format {plex.name}.mp4 --log OFF | tr '\n' '\0' | xargs -0 touch
Shell: Select all
filebot -mediainfo -r . --format "touch -t {d.format 'YYYYMMdd0000'} {quote f}" | sh -x
Shell: Select all
filebot -rename -r . --db xattr --action hardlink --output 'Jackie Chan' --filter 'actors =~ /Jackie Chan/'
Shell: Select all
filebot -rename -r . --db xattr --action hardlink --output 'By Genre' --filter genre --format {genre}/{plex.name}
Shell: Select all
filebot -rename -r . --db xattr --action hardlink --output 'By Director' --filter director --format {director}/{plex.name}
Shell: Select all
filebot -rename -r . --db xattr --output 'Old Movies' --filter 'movie && y < 1970'
Shell: Select all
filebot -rename -r . --db xattr --action copy --output /Volumes/USB --filter 'episode && age < 30'
Shell: Select all
filebot -mediainfo -r . --filter 'genres =~ /Science Fiction/' --format {f}
Shell: Select all
filebot -mediainfo -r . --filter 'f.subtitle && !(lang =~ /eng/)' --format {f} | xargs -I % rm -v %
Shell: Select all
filebot -rename *.jpg --db xattr -non-strict --filter exif --format "{dt.format 'yyyy/yyyy-MM-dd HH∶mm∶ss'}"
Shell: Select all
filebot -rename *.jpg --db xattr -non-strict --filter exif --format {y}/{fn}
Shell: Select all
filebot -rename *.jpg --db xattr -non-strict --filter camera --format {camera.model}/{fn}
Shell: Select all
filebot -rename *.jpg --db xattr -non-strict --filter location --format {location.country}/{fn}
Shell: Select all
filebot -mediainfo -r /input --format {json}
Shell: Select all
filebot -mediainfo -r /input --filter f.video --format '{minutes} {f}' | awk '{ print $0; sum += $1 } END { print sum }'