![]() ![]() Or as a single command using process substitution: diff every file is listed in output then): git diff -no-index dir1/ dir2/ ![]() Then compare the result two files with diff: diff -u dir1.txt dir2.txt Use find to list all the files in the directory then calculate the md5 hash for each file and pipe it sorted by filename to a file: find /dir1/ -type f -exec md5sum + | sort -k 2 > dir2.txt A good way to do this comparison is to use find with md5sum, then a diff. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |