JakeWharton / mkvdts2ac3

Bash script to convert DTS audio to AC3 within a matroska file.
Apache License 2.0
322 stars 60 forks source link

grep -x option #96

Open ce3a opened 10 years ago

ce3a commented 10 years ago

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 }')