title: Converting relative path into absolute path?
body: <p>I'm not sure if these paths are duplicates. Given the relative path, how do I determine absolute path using a shell script?</p>
  
  <p>Example:</p>
  
  <pre><code>relative path: /x/y/../../a/b/z/../c/d
  
  absolute path: /a/b/c/d
  </code></pre>