Store format result into vars in a script
Posted: 25 Jul 2019, 21:05
Hello,
is it possible to store the resulting format value into a var/an array to use it in a custom script without doing something else?
Has filebot native support for such an approach?
At the moment I am using this (simplified) code to get all matching values into a loop or an array:
Thanks a lot in advance.
Kind regards,
tresi
is it possible to store the resulting format value into a var/an array to use it in a custom script without doing something else?
Has filebot native support for such an approach?
At the moment I am using this (simplified) code to get all matching values into a loop or an array:
Code: Select all
filebot {CUSTOM_ARGS} --action test --format "{CUSTOM_FORMAT}" -rename "{SINGLE_FILE OR DIR}" | grep "\[TEST\]" | cut -d'[' -f4 | while read file;
echo "$file"
do
Kind regards,
tresi