title: how to evaluate a given path within a bash shell
body: <p>Is there a bash command that takes as input a file path and returns an absolute file path?
  More specifically I would like a command that takes as input a path such as:</p>
  
  <p><pre>/tmp/yaneeve/kit/linux/../../output/kit/SOURCES//usr//apps/myapp/lib</pre></p>
  
  <p>and returns the path:</p>
  
  <p><pre>/tmp/yaneeve/output/kit/SOURCES/usr/apps/myapp/lib</pre></p>
  
  <p>Thanks!</p>