title: Compare 2 files with shell script
body: <p>I was trying to find the way for knowing if two files are the same, and found this post...</p>
  
  <p><a href="https://stackoverflow.com/questions/2671300/parsing-result-of-diff-in-shell-script">Parsing result of Diff in Shell Script</a></p>
  
  <p>I used the code in the first answer, but i think it's not working or at least i cant get it to work properly...</p>
  
  <p>I even tried to make a copy of a file and compare both (copy and original), and i still get the answer as if they were different, when they shouldn't be.</p>
  
  <p>Could someone give me a hand, or explain what's happening?</p>
  
  <p>Thanks so much;</p>
  
  <p>peixe</p>