<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pandazx</author_name>
  <author_url>https://blog.hatena.ne.jp/pandazx/</author_url>
  <blog_title>pandazx's blog</blog_title>
  <blog_url>https://pandazx.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>よくスクリプトのヘッダには以下のように書きます。 #! /usr/bin/env ruby おまじないとして、今までenvの意味を調べてこなかったのですが、 今日、ようやく調べて目からウロコでした。 Rubyスクリプトの１行目の記述 -シェバング上記の例でいえば、rubyのパスが環境により違うので envコマンドにrubyのパスを調べてもらおうという仕組みです。これにより、envコマンドのパスが違わなければ、 ruby, perlなどのパスが違う環境でも動きます。rubyよりはenvの方がパスが違うことの方が少ないのは間違いないでしょう。また、「!#」の行のことをshebang（シェバング）と…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpandazx.hatenablog.com%2Fentry%2F2012%2F10%2F08%2F135035&quot; title=&quot;スクリプトのヘッダで行う実行コマンドのパス指定方法 - pandazx&amp;#39;s blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-10-08 13:50:35</published>
  <title>スクリプトのヘッダで行う実行コマンドのパス指定方法</title>
  <type>rich</type>
  <url>https://pandazx.hatenablog.com/entry/2012/10/08/135035</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
