<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zariganitosh</author_name>
  <author_url>https://blog.hatena.ne.jp/zariganitosh/</author_url>
  <blog_title>ザリガニが見ていた...。</blog_title>
  <blog_url>https://zariganitosh.hatenablog.jp/</blog_url>
  <categories>
    <anon>mac</anon>
    <anon>コマンド</anon>
    <anon>AppleScript</anon>
  </categories>
  <description>いつも、いざ使う時になって、どうやるんだっけ？と探し回ってしまうので、忘れないようにメモ。（以前の日記でも、所々分散して書いているかもしれないが、ここで総括的に記録することにした） シェルスクリプト $ fpath='/a/b/c.d.e' # ファイル名を取り出す（拡張子あり） $ fname_ext=&quot;${fpath##*/}&quot; $ echo $fname_ext c.d.e # ファイル名を取り出す（拡張子なし） $ fname=&quot;${fname_ext%.*}&quot; $ echo $fname c.d # 拡張子を取り出す $ fext=&quot;${fpath##*.}&quot; $ echo $fex…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzariganitosh.hatenablog.jp%2Fentry%2F20100921%2Fget_file_name_ext_dir&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>2010-09-21 00:00:00</published>
  <title>ファイルパスからファイル名や拡張子を自由に取り出す</title>
  <type>rich</type>
  <url>https://zariganitosh.hatenablog.jp/entry/20100921/get_file_name_ext_dir</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
