i have two text files test1.txt and test2.txt with content as
test1.txt 1 2 test2.txt 1 2 3 4
what i have achieved with the txt files is a difference of both files in a third file as
diff test2.txt test1.txt > test.patch
patch test.txt < test.patch
in text.txt i have the resultant difference of both files.
Now i am doing the same with CSV files.
The format for CSV files is like
HENRY CONSTANTINE | 02256 | MEDICAL | Speciality
diff small2.csv small1.csv > small.patch
patch small.csv < small.patch
*Note: I have created the small.csv file manually.
But i get the following error when i run the patch
patching file small.csv Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file small.csv.rej
Does anyone have any idea of how to achieve the above Difference file for CSV files.