Set new line code to LF and overwrite (UNIX type)

nkf

  • Network kanji filter.
    Converts kanji code from one encoding to another.
    More information: <https://manned.org/nkf>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

nkf -d --overwrite {{path/to/file.txt}}

click the source code to copy install nkf on any operating system with command-not-found.com