<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hirose31</author_name>
  <author_url>https://blog.hatena.ne.jp/hirose31/</author_url>
  <blog_title>（ひ）メモ</blog_title>
  <blog_url>https://hirose31.hatenablog.jp/</blog_url>
  <categories>
    <anon>unix</anon>
  </categories>
  <description>bashの「Process Substitution」という機能で、コマンドの実行結果を名前つきパイプから読めます。(thx かつみくん) $ cat -n &lt;(date; echo foo) 1 Wed Jan 18 21:38:30 JST 2006 2 fooこれを使って、リモートホストのファイルとdiffを取るシェル関数を作ってみました。こんな感じで使えます。 $ rdiff -u ~/s.txt REMOTE_HOST:~/d.txtまた-Rオプションで、rsyncの-R, --relativeオプションの様にローカルホストのパスをリモートホストの相対パスとして指定できます。たとえば…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhirose31.hatenablog.jp%2Fentry%2F20060118%2F1137588490&quot; title=&quot; リモートホストとdiffる - （ひ）メモ&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>2006-01-18 21:48:10</published>
  <title> リモートホストとdiffる</title>
  <type>rich</type>
  <url>https://hirose31.hatenablog.jp/entry/20060118/1137588490</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
