Skip to content

Instantly share code, notes, and snippets.

@nielswind
Created March 27, 2021 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nielswind/8c9c3ecd271f433bd79699a083770f90 to your computer and use it in GitHub Desktop.
Save nielswind/8c9c3ecd271f433bd79699a083770f90 to your computer and use it in GitHub Desktop.
#!/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