diff source_file dest_file
cmp source_file dest_file
Example:
file1:
1
2
3
file2:
2
4
s234-80:Desktop nemo$ cmp file1.txt file2.txt
file1.txt file2.txt differ: char 1, line 1
s234-80:Desktop nemo$ diff file1.txt file2.txt
1d0
< 1
3c2
< 3
---
> 4
\ No newline at end of file
s234-80:Desktop nemo$
No comments:
Post a Comment