Hey LQ,
Simple question here from a newbie.
I'm trying to use the program 'diff' to tell me if two files aren't the same. I don't really care what the differences are, I just want to know if they are different.
I have created two files.
file1.txt has the word "w00te" in it.
file2.txt has the word "w00t" in it.
So when I run my command this is the output I get.
Code:
wh33t@wh33tserv:~/test_dir/source_dir$ diff file1.txt file2.txt
1c1
< w00te
---
> w00t
So what I want to know is:
1. What does "1c1" mean?
2. If the files are the same will 'diff' always return nothing?
3. Is this the fastest and easiest way to check if two files are the same (remember I don't care what the differences are.
Thanks in Advance!