tst/file1 tst/file4 = 3 2 tst/file1 tst/file6 = 3 1 tst/file1 tst/file2 = 3 3 tst/file1 tst/file3 = 3 3 tst/file1 tst/file4 = 3 2 tst/file1 tst/file5 = 3 2 tst/file1 tst/file6 = 3 1 tst/file1 tst/file2 = 3 3 tst/file1 tst/file3 = 3 3 tst/file1 tst/file4 = 3 2 tst/file1 tst/file5 = 3 2 tst/file1 tst/file6 = 3 1 tst/file2 tst/file3 = 3 3 tst/file2 tst/file4 = 3 2 tst/file2 tst/file5 = 3 2 tst/file2 tst/file6 = 3 1 tst/file3 tst/file4 = 3 2 tst/file3 tst/file5 = 3 2 tst/file3 tst/file6 = 3 1 tst/file4 tst/file5 = 2 2 tst/file4 tst/file6 = 2 1 tst/file5 tst/file6 = 2 1 Immediate EOF: samefile: no files left Immediate EOF, verbose: 0 input filenames. 0 regular files left with size > 0 bytes. samefile: no files left One existing file: samefile: no files left One non-existing file: samefile: no files left Invalid option: samefile reads a list of filenames from stdin and writes a list of identical files on stdout. usage: samefile [-g size] [-l | -r] [-s sep] [-0aiqVvx] options: -0 : input lines are 0 terminated (newline) -a : don't sort files with same size alphabetically -g : only output files greater than size (0) -i : compare even files that are hard linked -l : skip checking for hard links -q : do not warn when open(2) fails -r : report if identical files are hard links -s : use sep as separator string for files (tab) -V : output version information and exit -v : verbose output with statistics on stderr -x : do not try to save work by using logic default: names which are hard links to the same file are neither compared nor output (ex and vi for example).