mkvdts2ac3
mkvdts2ac3 copied to clipboard
grep -x option
I am running the script on a ARM based NAS, its version of grep
does not support the -x
option. In the following line, can we use the -o
option instead?
SAVETRACKS=$(mkvmerge -i "$MKVFILE" | grep "$AUDIOTRACKPREFIX" | cut -d ":" -f 1 | grep -vx "Track ID $DTSTRACK" | cut -d " " -f 3 | awk '{ if (T == "") T=$1; else T=T","$1 } END { print T }')