How to bulk check whether files have the same content How to bulk check whether files have the same content ruby ruby

How to bulk check whether files have the same content


require 'fileutils'FileUtils.compare_file('file1','file2')

returns true if and only if files file1 and file2 are identical.