<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swx-tomoe-furukawa</author_name>
  <author_url>https://blog.hatena.ne.jp/swx-tomoe-furukawa/</author_url>
  <blog_title>サーバーワークスエンジニアブログ</blog_title>
  <blog_url>https://blog.serverworks.co.jp/</blog_url>
  <categories>
    <anon>AWS CloudShell</anon>
  </categories>
  <description>CI部SRE1課の古川(智)です。 Windows端末でシェルスクリプトを編集したら「/bin/sh^M: bad interpreter: No such file or directory」というエラーが出てきました。 今回はそんなときの対処法について書いていきます。 状況 解決方法 現在のファイルフォーマットを確認してみる ファイルフォーマットをunixに変更する おわりに 状況 Windows端末でAWS CloudShellを開き、そのままシェルスクリプトを書いて実行したところ以下のエラーが発生しました。 /bin/sh^M: bad interpreter: No such fil…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.serverworks.co.jp%2F2022%2F06%2F23%2F113000&quot; title=&quot;AWS CloudShellで「/bin/sh^M: bad interpreter: No such file or directory」となった時の対処法 - サーバーワークスエンジニアブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/155681015/1782273580258620</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-23 11:30:00</published>
  <title>AWS CloudShellで「/bin/sh^M: bad interpreter: No such file or directory」となった時の対処法</title>
  <type>rich</type>
  <url>https://blog.serverworks.co.jp/2022/06/23/113000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
