1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh for INPUT in "$@" do echo "$INPUT" HandBrakeCLI \ --json \ --preset-import-file presets.json \ --preset "Adam's DVD" \ --input "$INPUT" \ --output /mnt/plex/new/"${INPUT##*/}" \ >> /var/log/HandBrakeCLI.json mv -v $INPUT $INPUT.done done