Running a shell script through Cygwin on Windows

后端 未结 6 1910
有刺的猬
有刺的猬 2020-12-07 18:14

I have a bunch of shell scripts that used to run on a Linux machine. Now, we\'ve switched over to Windows, and I need to run these scripts there. I have Cygwin installed, bu

6条回答
  •  囚心锁ツ
    2020-12-07 19:05

    If you have access to the Notepad++ editor on Windows there is a feature that allows you to easily get around this problem:

    1. Open the file that's giving the error in Notepad++.
    2. Go under the "Edit" Menu and choose "EOL Conversion"
    3. There is an option there for "UNIX/OSX Format." Choose that option.
    4. Re-save the file.

    I did this and it solved my problems.

    Hope this helps!

    Read more at http://danieladeniji.wordpress.com/2013/03/07/microsoft-windows-cygwin-error-r-command-not-found/

提交回复
热议问题