realpath
realpath is the result of an annoyance I had with Linux. Many times, I'd come across symlinks and such with a really obnoxious path, like
../../friend/../suzy/mark/jake/./important.txt
Just where, exactly, is this file in the filesystem? Well, instead of being annoyed by it, I wrote a program to reveal it. There is a programming function called realpath(3) that resolves all components of a given path into their absolute values. I wrote a C wrapper around it to put it into user space. Not being content with just that and knowing there are people not comfortable compiling code (or able to) I re-wrote the program in pure Perl.
Download realpath | Projects page | Home
| All content © 2003-2008 Jeff Stoner |
 |