Linux.com

Re: Any way to extract the script's directory

Posted by: Anonymous [ip: 65.79.229.3] on November 09, 2007 05:39 PM
There are some examples at <a href="http://crashingdaily.wordpress.com/2007/09/22/bashing-perl-findbin/">http://crashingdaily.wordpress.com/2007/09/22/bashing-perl-findbin/</a>

These examples resolve relative paths and expand ~ to physical paths.

#

Return to Four ways to extract the current directory name