cd "$(dirname "$0")" && find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c 'cd "$0" && rm $(find . -name "*.ts" -printf "%T+\t%p\n" | sort -d | head -n-13 | awk "{ print $2 }") 2> /dev/null' {} \;