製作patch
diff -ruN FolderA FolderB > difference.patch
也可適用於file
diff -ruN FileA FileB > difference.patch
Apply patch
patch -p0 < difference.patch
example:
<script src='http://pastie.org/2379091.js'></script>
http://pastie.org/2379091
html mode
Ref:
http://www.reality.hk/articles/2004/08/31/268/
沒有留言:
張貼留言