<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rikoubou</author_name>
  <author_url>https://blog.hatena.ne.jp/rikoubou/</author_url>
  <blog_title>ソースに絡まるエスカルゴ</blog_title>
  <blog_url>https://rikoubou.hatenablog.com/</blog_url>
  <categories>
    <anon>shell</anon>
    <anon>MacOS</anon>
  </categories>
  <description>Windowsでは「.bat」という拡張子のファイルを作成することで、ダブルクリックするだけでコマンドプロンプトの処理を実行することができるいわゆる「バッチファイル」を作成することができます。 MacOSでもそういう機能があるのかと思って調べてみたら、shellファイルをダブルクリックするだけで起動させられることがわかったのでその備忘録です。 では始めます。 １：.commandファイル MacOSではshellが使えます。そのshellで記述したファイルの拡張子を「.command」に変更すると、ダブルクリックするだけで実行することができます。 例えば以下のようなコードを記述してみます。・t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frikoubou.hatenablog.com%2Fentry%2F2019%2F09%2F27%2F114255&quot; title=&quot;【MacOS/shell】MacOSでWindowsでいうバッチファイルを作成する - ソースに絡まるエスカルゴ&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-ak.f.st-hatena.com/images/fotolife/r/rikoubou/20190927/20190927113553.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-27 11:42:55</published>
  <title>【MacOS/shell】MacOSでWindowsでいうバッチファイルを作成する</title>
  <type>rich</type>
  <url>https://rikoubou.hatenablog.com/entry/2019/09/27/114255</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
