Answers:
如果使用默认外壳程序(bash),则可以使用以下命令:
for file in *.MOV; do ffmpeg2theora "$file"; done
nocaseglob
bash选项以匹配小写,大写混合大小写的文件扩展名。
find . -iname '*.mov' -exec ffmpeg2theora '{}' \;
要限制递归深度,可以-maxdepth 1
在-exec
for file in *.MOV
解决方案将仅在当前目录中查找。
for file in *.[Mm][Oo][Vv]; do ffmpeg2theora "$file"; done