i read out directory paths and try to pipe them into a comand with parameter -f
the individual commands look like this
printf '%s\n' /mnt/convert/*
convert -f /mnt/convert/example.mp4
the output of printf might be:
/mnt/convert/vid1.mp4
/mnt/convert/vid2.mp4
/mnt/convert/vid3.mp4
...
the goal is (pseudocode):
printf '%s\n' /mnt/convert/* | xargs convert -f
how would I best achieve this? right now I receive the error:
Error: Got unexpected extra argument (/mnt/convert/vid1.mp4)