shell - osx change file encoding (iconv) recursive -


I know that I can change a file encoding under OSX:

Iconv -f ISO-8859-1-T UTF-8 Mayfilenam xxx & gt; Myfilename-utf8.xxx

I have to change a set of files with specific extensions, so I want to convert file encoding from ISO-8859-1 to UTF-8 for everyone *. Ext files in the folder / mydisk / myfolder

Perhaps someobe syntax knows how to do this

thanks

ekke

< P>

The comment 'Adam' showed me how to solve this, but this syntax only I did it:

  find / mydisk / myfolder -name \ *. Xxx-type f | \ (While the file was read; iconv -f ISO-8859-1 -t UTF-8 "$ file" & gt; "$ {file% .xxx} -utf8.xxx" done);  

-i ... -o ... does not work, but>

thx again

ekke


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -