<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>basyura</author_name>
  <author_url>https://blog.hatena.ne.jp/basyura/</author_url>
  <blog_title>basyura's blog</blog_title>
  <blog_url>https://blog.basyura.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>/tmp/test.rb を作って #!ruby puts __FILE__ ~/bin にシンボリックリンクを張る cd ~/bin ln -s /tmp/test.rb te呼び出す $ te /home/basyura/bin/teとなるんだけど、ここで /tmp/test.rb を取得するにはどうしたらいいのか？ puts `ls -la #{__FILE__}`.split(&quot; -&gt; &quot;)[1] #=&gt; /tmp/test.rbとか？(^ ^; よく分からないのが #!ruby puts __FILE__ #=&gt; /home/basyura/bin/te puts File::Sta…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.basyura.org%2Fentry%2F20090618%2Fp1&quot; title=&quot; シンボリックリンクのリンクの先のディレクトリを知りたい - basyura&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>2009-06-18 00:00:00</published>
  <title> シンボリックリンクのリンクの先のディレクトリを知りたい</title>
  <type>rich</type>
  <url>https://blog.basyura.org/entry/20090618/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
