<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oraccha</author_name>
  <author_url>https://blog.hatena.ne.jp/oraccha/</author_url>
  <blog_title>Plan9日記</blog_title>
  <blog_url>https://oraccha.hatenadiary.org/</blog_url>
  <categories>
    <anon>Tips</anon>
  </categories>
  <description>今日の元ネタは、「シェル(bash)スクリプトを書くときのTips 」。 `{command} コマンド置換。コマンドを実行し、その標準出力を引数として読み込むには、`{...}を使う。もちろん入れ子もOK。ん、Plan9にはbasename(1)はあるけど、dirname(1)はないのね。 {command} bashにはないけど、zshだとプロセス置換と呼ぶのかな？ コマンドの出力をファイルのように扱うことができる。 &gt;{...}もOK。内部的にはコマンドの標準入出力をパイプにつなげるんだけど、次の例のように、非線形なパイプラインを作ることができる。 cpu% diff &lt;{echo ho…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foraccha.hatenadiary.org%2Fentry%2F20080902%2F1220368128&quot; title=&quot; シェル(rc)スクリプトを書くときのTips  - Plan9日記&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-09-02 00:08:48</published>
  <title> シェル(rc)スクリプトを書くときのTips </title>
  <type>rich</type>
  <url>https://oraccha.hatenadiary.org/entry/20080902/1220368128</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
