Find the difference between two files

Using the (diff) command you can find out the difference between two files, (sdiff) allows for you to see both files at once to find the difference.

echo "ABC" > a
echo "ABCD" > b
diff a b
1c1
< ABC
---
> ABCD
sdiff a b
ABC                                                           | ABCD

Leave a Reply

*

Page optimized by WP Minify WordPress Plugin