2
With bash, you'd set the globstar and nullglob shell options and use ** to recurse into subdirectories: shopt -s globstar nullglob for mkvfile in **/*.mkv; do mkvpropedit "$mkvfile" -e info -s title="${mkvfile::-4}" done See 4.3.2 The Shopt Builtin in the manual. Note you can also use ${m...