Originally Posted by paragn
I dont think its possible to get absolute path from relative path as the same name of file may exist to any other location so you will get all those entries of given relative path of filename.
No. It is possible. A relative path is relative to the current working directory. So there is only one full path for a relative path.
Debian comes with a shell utility called "realpath", but it's not installed by default, and not all distributions provide it. The program "realpath" also resolves "..", "." and symbolic links to get the one-and-only full path.
If you really need to, such program is quite easy to make, because there is a "realpath()" C-function in the standard C-library. See "man 3 realpath".