I need to calculate md5sum of all files in a directory and print them in a line if their md5sum is same. for example, if we calculate md5sums:
file1, md5sum abcdefgh file2, md5sum 21safdsg file3, md5sum abcdefgh file4, md5sum 21safdsg
the output should look like this:
file1, file3, abcdefgh file2, file4, 21safdsg
It can be a script or a command. I've run out of ideas.