How to use the shell command to convert a bunch of .csv files from ansi format to utf-8 format under windows?

how to use the shell command to convert a bunch of .csv files from ansi format to utf-8 format under

windows?
Source folder input_dir
destination folder output_dir
Thank you

Mar.12,2021

install cygwin, install dos2unix tool.

then cd to your input_dir directory in cygwin, and execute find-name'* .csv'- print0 | xargs-0 dos2unix one command.

I have to say that the experience of shell and tools under Linux is the end of windows. If you have to use shell, it is recommended to run the posix simulation environment under windows and use the GNU series toolset.

in addition, powershell can also be implemented through scripting: https://stackoverflow.com/que. convenience is definitely not as convenient as find + dos2unix.

Menu