Skip to main content

nkf

Install

paru -S nkf

Usage

  • To convert any file to UTF-8 + LF:
nkf -w -Lu --overwrite input_file
  • To convert C files in current directory to UTF-8 + LF:
find . -iname "*.c" -type f -print0 | xargs -0 nkf -w -LF --overwrite