Bash relative path from current directory <p>I'm interested in finding the the relative path between two directories. The script is run in a directory which is a child (or descendant) of some specified folder. I want to get and output the relative path from that parent directory to the current directory. If the specified directory is not an ancestor of the current directory,\ I will output some sort of error.</p> <p>Thanks</p>