Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑以下示例:
$ls base.txt base-modified.txt $diff base.txt base-modified.txt > diff.txt $rm base-modified.txt $
我想要 base.txt 和 diff.txt 中的 base-modified.txt ......有人可以建议一种方法吗?
你可以使用补丁。
cp base.txt base-modified.txt patch base-modified.txt diff.txt