Created
March 27, 2021 08:08
-
-
Save nielswind/8c9c3ecd271f433bd79699a083770f90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
FILES=($*) | |
for val in "${FILES[@]}"; do | |
echo $val | |
#[[ $SRT =~ ((\.en)?(\.da)?\.srt$) ]] && echo "${BASH_REMATCH[1]}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment