#!/bin/bash # Check if a directory is provided, otherwise use the current directory dir="${1:-.}" # Find all .mkv files recursively find "$dir" -type f -name "*.mkv" | while read -r file; do # Check for subtitle tracks using mkvinfo if ! mkvinfo "$file" | grep -q "Track type: subtitles"; then echo "$file" fi done