mkvdts2ac3 icon indicating copy to clipboard operation
mkvdts2ac3 copied to clipboard

grep -x option

Open ce3a opened this issue 10 years ago • 0 comments

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

ce3a avatar Apr 18 '14 11:04 ce3a