Change encoding multiple file with iconv in bash

℡╲_俬逩灬. 提交于 2019-12-04 09:24:09

You must put either \; or + at the end of the -exec action.

find . -type f -name '*.php' -print -exec iconv -f euc-kr -t utf-8 {} -o {}.utf8 \;
klaun

after some tests finally found out solution working on my mac

for f in *.TXT; do iconv -f CP1250 -t utf-8 $f > $f.txt; done
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!