$’\r’: $’\r’: $’\r’: $’\r’: The basic problem is that the newline “\r” in Windows is not recognized in Linux because the default newline character in Linux is “\n”. Here you need to do a little bit of work to modify it.

The solution I have chosen is to use the conversion function of the dos2UNIX plug-in to do the job and install the component in the Linux environment:Copy the code

Apt install dos2unix use the test.sh script as an example to explain how to use it:

Chmod 755 test.sh dos2unix test.sh./test.sh is very simple to use.