<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t2y-1979</author_name>
  <author_url>https://blog.hatena.ne.jp/t2y-1979/</author_url>
  <blog_title>forest book</blog_title>
  <blog_url>https://t2y.hatenablog.jp/</blog_url>
  <categories>
    <anon>bash</anon>
    <anon>1liner</anon>
  </categories>
  <description>要件定義/目的: 環境変数 PATH からコマンドの絶対パスを取得する 自己アピール: なし(単なる意地) コメント: シェルスクリプトで書いた方がやっぱり簡単 環境変数 PATH からコマンドの絶対パスを取得する $ which_bash() { echo $PATH | awk 'BEGIN{RS=&quot;:&quot;} {print}' | while read f; do find $f -name $1 -perm +111; done | head -1; } 実行結果 $ echo $PATH /usr/kerberos/bin:/bin:/usr/bin:/usr/local/bin:/us…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft2y.hatenablog.jp%2Fentry%2F20080410%2F1207804682&quot; title=&quot;which コマンドの実装2 - forest book&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>2008-04-10 14:18:02</published>
  <title>which コマンドの実装2</title>
  <type>rich</type>
  <url>https://t2y.hatenablog.jp/entry/20080410/1207804682</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
