RELPATH(1)

NAME
relpath - returns a path which is relative to the specified base

SYNOPSIS
relpath base path

DESCRIPTION
The relpath utility returns a path for path which is relative to the specified base. The path in path and all the elements between it and base must exist on the same file system.

EXAMPLES
    % relpath /usr/home /usr/home/okumoto/test/main
    okumoto/test/main

BUGS
If any element in path has the same inode as base then the path returned will be the same.