<?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>bash</anon>
  </categories>
  <description>$ diff -u -bw -I Id /usr/irori/bin/foo ~/WORKDIR/foo $ cp ~/WORKDIR/foo /usr/irori/bin/fooなふうに、ファイルをcpしたりする前にdiffって確認することは日常よくある風景だと思うのですが、diffとcpとで引数が逆になってアレです。並びが同じならば履歴＋行編集でいけるのに。。。diff(1)みてもそれっぽいのがないみたいなので、シェル関数で逃げました。。。 xdiff() { declare -a opts declare -a files optv=(&quot;$@&quot;) optc=${#optv[@]} fil…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhirose31.hatenablog.jp%2Fentry%2F20100126%2F1264507318&quot; title=&quot; diff → cp のコンボ - （ひ）メモ&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-01-26 21:01:58</published>
  <title> diff → cp のコンボ</title>
  <type>rich</type>
  <url>https://hirose31.hatenablog.jp/entry/20100126/1264507318</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
