It’s always good when you are looking for a way to do a task and you find great one-liner that just does the job right:
diff -rq directory1/ directory2
Switches “r” and “q” will recursively compare the two directories and showing brief output. Continue reading “Compare contents of two directories in bash”