cat >> test1 << EOF
> 111111
> 111111
> EOF
diff -Nu test1 test2 > test.patch
patch -p0 <test.patch
patch -RE < test.patch
--- tt/ttt/test1 2009-12-19 22:28:26.582959182 +0800
+++ tt/ttt/test2 2009-12-19 22:28:42.798928591 +0800
cat >> test1 << EOF
> 111111
> 111111
> EOF
diff -Nu test1 test2 > test.patch
patch -p0 <test.patch
patch -RE < test.patch
--- tt/ttt/test1 2009-12-19 22:28:26.582959182 +0800
+++ tt/ttt/test2 2009-12-19 22:28:42.798928591 +0800