Return to Snippet

Revision: 48927
at July 28, 2011 04:31 by a1ias


Updated Code
find /Directory/With/Files -name '*.php' | while read f ; do iconv -f UTF-8 -t CP1251 <$f >$f.tmp && mv "$f.tmp" "$f" ; done

Revision: 48926
at July 13, 2011 00:15 by a1ias


Initial Code
find /Directory/With/Files -name '*.php' | while read f ; do iconv -f UTF-8 -t CP-1251 <$f >$f.tmp && mv "$f.tmp" "$f" ; done

Initial URL

                                

Initial Description

                                

Initial Title
Convert file encoding on Mac

Initial Tags
mac

Initial Language
Bash