in reply to Script to compare 2 folders, including sub folders and files with content

diff -Nur /path/to/dir1 /path/to/dir2 should do the trick, list all differences in text files, and name different binary files. If all files are text files, but diff fails to recognise some of them, force ASCII mode: diff -Naur /path/to/dir1 /path/to/dir2.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: Script to compare 2 folders, including sub folders and files with content
by duelafn (Parson) on Jul 02, 2016 at 14:14 UTC

    -qrs would be better since OP is only listing files, not the actual diff:

    $ diff -qrs /tmp/A /tmp/B Only in /tmp/A: Math.aux Files /tmp/A/Math.log and /tmp/B/Math.log differ Files /tmp/A/Math.pdf and /tmp/B/Math.pdf differ Files /tmp/A/Math.tex and /tmp/B/Math.tex differ Files /tmp/A/MathLogo.jpg and /tmp/B/MathLogo.jpg are identical

    Update: Oh oops, looks like haukex already said this... I missed it behind the part of their post that actually answered the original question :). Think of this post as highlighting the alternate solution.

    Good Day,
        Dean