LoginSignup
0
0

More than 5 years have passed since last update.

シェルの実行で`bad interpreter: /bin/sh^M: no such file or directory`と出る場合の対応

Posted at

取り急ぎ書いておきます

対応1: Vimで対応

vimを開いて下記のコマンドをつっこむ

:set fileformat=unix
:wq!
:set ff=unix
:wq!

対応2: sedで対応

$ sed -i 's/\r//' <filename>

参考

StackOverFlow

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0