I want to execute some commands using the find -exec option, but I'm not sure what' wrong with this code. Currently, it's only processing the first find result, then getting stuck. I'm using bash in OS X.
read -e DIRECTORY
find $DIRECTORY -type f -name '*.mov' -exec sh -c '
file="$0"
echo "Processing $file ..."
modmovie -notrack "Timecode Track" $file -save-in-place
read line </dev/tty
' {} \;
read line </dev/tty
for exactly? – Mat Apr 20 at 9:17read line </dev/tty
expecting input. If you type something and hit enter it will continue. What exactly is $line supposed to be? – terdon Apr 20 at 13:06