Lowest Common Denominator
This is a small utility that reports the lowest common denominator in two paths.
./lcd Usage: ./lcd [-r] <path1> <path2>
./lcd /long/path/to/some/file /long/path/to/some/other/file /long/path/to/some/ ./lcd -r /long/path/to/some/file /long/path/to/some/other/file other/file
Notice that the reversed (-r) option reports the part of path2 that differs from path1.
Download the source-code and build it using:
gcc -o lcd lowest-common-denominator.c