diff -u test_file01 test_file02 > diff.txt to get diff between the two files.
use patch test_file02 < diff.txt to restore test_file02 by diff.txt and test_file01