Linux solves the encoding error of window upload file

Angryshark_ one hundred and twenty-eight 2022-06-24 07:15:11 阅读数:711

linuxsolvesencodingerrorwindow

Scheme 1

sed -i -e 's/\r$//' *.sh

Option two

vi *.sh
:set ff=unix
:x
copyright:author[Angryshark_ one hundred and twenty-eight],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/175/202206240050385908.html