Monday, August 29, 2016

Compare two files in unix

$ diff file1 file2

-> It will display the line by line differences between file1 and file2 contents

$ cmp file1 file2

-> Binary files comparison

No comments:

Post a Comment