1 2 3 4 5 6 7 8 9
#!/bin/bash EXT=`echo "$1"|awk -F . '{print $NF}'` NAME=`basename $1 .$EXT` if [ -z "$2" ]; then echo "Usage: $0 <video-file> <csv-file>" exit 1 fi