cmd to resolve symbolic links
is there a cmd to resolve symbolic links in a given path?
for example, if
dir1 -> dir2,
dir3 -> ../
dir4 -> dir5
then if i gave the cmd this path:
it would return the resolved links, which would be:
or more simply:
If anyone knows of such a cmd let me know, I'm writing this in shell script, but there are a lot of considerations to take into account.