<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akira6592</author_name>
  <author_url>https://blog.hatena.ne.jp/akira6592/</author_url>
  <blog_title>てくなべ</blog_title>
  <blog_url>https://tekunabe.hatenablog.jp/</blog_url>
  <categories>
    <anon>linux</anon>
  </categories>
  <description>はじめに よく忘れてしまうのですが、直前に実行したコマンドの最後の引数を取得する方法があります。 例えば、 mkdir hoge したあとに、hoge に cd したい時に便利です。 最近、tiwtter でいくつか方法があることを知りました。 忘れる自信があるので書き留めておきます 動作確認環境: CentOS 8 / bash その1: $_ 忘れていたのか初めて知ったのかもうわかんないけど、$ mkdir /path/to/dirとか$ ls /foo/bar/bazとかしたあと、$ cd $_ってやると直前の引数のパスに移動できるのね。。。($_に最後の引数が入ってる)で、$_ が何者…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2020%2F06%2F05%2F205532&quot; title=&quot;直前に実行したコマンドの最後の引数を取得する方法3つ - てくなべ&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>2020-06-05 20:55:32</published>
  <title>直前に実行したコマンドの最後の引数を取得する方法3つ</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2020/06/05/205532</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
