1 2 3 4 5 6
#!/bin/sh echo "$1" | sed -E ' s/((..):([^,]+))/@span lang="\2" .translation {-\3}/g s/,//g '