Tag: iconv
-
Change file encoding in linux with iconv
Loop recursively through all files in a directory matching a pattern and then change their encoding with iconv. #!/bin/bash find /Path/To/Files -name \*.xxx -type f | \ (while read file; do iconv -f ISO-8859-1 -t UTF8 “$file” > “${file%.xxx}-utf8.xxx”; done);