a guest Nov 21st, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- cd $directory
- if [ ! -d "$destBin" ]; then
- echo "Creating folder $destBin..."
- mkdir $destBin
- shopt -s nullglob
- for f in *.mkv
- echo "Processing file $f..."
- trackID=$(mkvmerge -I "$f" | sed -En 's/Track ID ([0-9]*): audio.*language:eng.*/\1/p')
- mkvmerge -o "$dest/$f" -a $trackID "$f"
- echo "Move the file to the \'$done\' folder."
- mv "$f" $destBin
- echo ""
RAW Paste Data