<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anmino</author_name>
  <author_url>https://blog.hatena.ne.jp/anmino/</author_url>
  <blog_title>あんみのの備忘録</blog_title>
  <blog_url>https://anmino.hatenadiary.org/</blog_url>
  <categories>
    <anon>UNIX/Linux</anon>
  </categories>
  <description>相対パスを絶対パスに変換する一般的な方法は用意されていない 相対パスの前にカレントディレクトリを付け足し.や..を処理することで 絶対パスに変換しています。 #!/bin/sh #relpath2abs.sh if [ -z &quot;$1&quot; ]; then echo &quot;Usage: reopath2abs.sh path&quot; exit 1 fi #引数が/で始まっているか調べる #exprの引数に/1文字を指定すると割り算記号と間違えられて #エラーになるので、前に余分な文字xを置いている if [ `expr x&quot;$1&quot; : x'/'` -ne 0 ]; then rel=&quot;$1&quot; else rel…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanmino.hatenadiary.org%2Fentry%2F20091022%2F1256175087&quot; title=&quot;相対パスから絶対パスを得る - あんみのの備忘録&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-10-22 10:31:27</published>
  <title>相対パスから絶対パスを得る</title>
  <type>rich</type>
  <url>https://anmino.hatenadiary.org/entry/20091022/1256175087</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
