Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if the script written under windows runs in the wrong format under mac

Shulou Source: shulou.com Published: 2022-06-01 04:23:53 10月03日 Update

The script written below windows runs in the wrong format under mac. I believe many inexperienced people don't know what to do about it. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

The script written under windows is not in the correct format under mac

At this time, we can change the format and do the following

Vim xxx.sh- > enter:-> set ff=unix- > enter confirm-> enter:-> wq- > enter Save exit

After reading the above, do you know what to do when the script written under windows runs in the wrong format under mac? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Format wrong script run what to do content method more problem input helpless for this reason skill time article experience industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn MariaDB Huawei OPPO Reno