# 検出 $ diff -u old.txt new.txt > diff.patch # 適用 $ patch -u (old.txt) < diff.patch # 逆適用(リバースパッチ) $ patch -u -R (new.txt) < diff.patch