文字コード一括変換のワンライナー(One Liner for changing text files' encodings)

Change all *.txt files to UTF-8 and UNIX LF.
すべての*.txtのファイルをutf-8とunix-lfに変えたファイルにする

for f in *.txt; do nkf -Lu -w "$f" > "${f%.txt}utf8.txt"; done


-Lu unix lf
-w utf-8

元データが必要なければ
for f in *.txt; do nkf -Lu -w --overwrite "$f"; done

Comments

Popular posts from this blog

Calling OpenCV functions via Cython from Python 3.X.

Android's VideoView doesn't always stretch video.

How to update lookup fileld of Kintone using pykintone