Otóż poprawiłem nieco skrypt i o to rezultat:
#!/bin/bashfor f in *.srt; dosed 's/ą/a/g' "$f" -i;sed 's/ę/e/g' "$f" -i;sed 's/ż/z/g' "$f" -i;sed 's/ź/z/g' "$f" -i;sed 's/ł/l/g' "$f" -i;sed 's/ó/o/g' "$f" -i;sed 's/ą/a/g' "$f" -i;sed 's/ś/s/g' "$f" -i;sed 's/ć/c/g' "$f" -i;sed 's/ń/n/g' "$f" -i;sed 's/Ą/A/g' "$f" -i;sed 's/Ę/E/g' "$f" -i;sed 's/Ż/Z/g' "$f" -i;sed 's/Ź/Z/g' "$f" -i;sed 's/Ł/L/g' "$f" -i;sed 's/Ó/O/g' "$f" -i;sed 's/Ą/A/g' "$f" -i;sed 's/Ś/S/g' "$f" -i;done
Lub, z wykorzystaniem enca:
#!/bin/bashfor f in *.srt; doenca -L polish -x utf-8 "$f"done