A shell script to recursively compare 2 directories, file by file (using md5sum command). It differs from original by support of spaces in file/directory names. dircmp
A shell script to recursively compare 2 directories, file by file (using md5sum command).
0) you need those commands/prorgams available in your system:
for program work (all): sh, echo, find, sort, comm, md5sum, awk.
for downloading program from repository (any): git, svn, hg.
1) download dircmp.sh from one of repositories in this project
2) sudo chmod +x ./dircmp.sh
3) sudo cp -a ./dircmp.sh /usr/bin/dircmp.sh
4) sudo ln -s /usr/bin/dircmp.sh /usr/bin/dircmp
5) dircmp dir1 dir2
6) enjoy!
Last edit: Michael 2012-10-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A shell script to recursively compare 2 directories, file by file (using md5sum command).
0) you need those commands/prorgams available in your system:
for program work (all): sh, echo, find, sort, comm, md5sum, awk.
for downloading program from repository (any): git, svn, hg.
1) download dircmp.sh from one of repositories in this project
2) sudo chmod +x ./dircmp.sh
3) sudo cp -a ./dircmp.sh /usr/bin/dircmp.sh
4) sudo ln -s /usr/bin/dircmp.sh /usr/bin/dircmp
5) dircmp dir1 dir2
6) enjoy!
Last edit: Michael 2012-10-11