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:

/tmp/yaneeve/kit/linux/../../output/kit/SOURCES//usr//apps/myapp/lib

and returns the path:

/tmp/yaneeve/output/kit/SOURCES/usr/apps/myapp/lib
Edit
Report