Answer the question
In order to leave comments, you need to log in
When passing the result to bash, I can't create a variable. Why?
There are search criteria, which are then passed to Bash for further processing: creating a file name and converting via FFmpeg.
find ~/Desktop/Serial -type f \( -name "*.mkv" -o -name "*.avi" \) -exec sh -c 'path={}; echo $path' \;
Answer the question
In order to leave comments, you need to log in
This problem is solved by simply quoting the assigned variable name.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question