I have a great script that I use to convert encoding in srt.files.
I also created an alias for that script so I can enter the directory where I want to run the script and use my alias konvert.
However, I have now the the following scenario: more then 20 directories with srt.files inside. What should I do in order to point my script to all those directories with just one command?
Luckily all these directories are together inside one main directory, so I believe there should be an easy way to do this.
Content of the script
#!/bin/bash for file in *.srt; do iconv -f CP1250 -t UTF-8 -o "$file".utf "$file" && mv "$file".utf "$file"; done