Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    If it's only required to check whether they're identical (without immediately seeing difference) it might also be acceptable to replace the diff ... command with something like [[ $(md5sum project1/"$filename") = $(md5sum project2/"$filename") ]] || echo $filename differs. Commented Nov 12, 2018 at 2:32
  • 1
    @cryptarch: Your comment is very helpful. And it works great. I would also add that if you are on a Mac or OS X, you better substitute md5 for md5sum. Commented Nov 29, 2018 at 19:41