Thomas Lange wrote: > Currently I do not remobmer which function returns the canonical > path. How can I convert a relativ path to an absolute path?
Because there's nothing to remember :) In BASH, there's no builtin function to to that. I did that not so long ago but somehow don't remember it now and where I did it. Here's one idea( from http://www.daniweb.com/techtalkforums/thread41035.html): You can get the path of your script with $0 : SCRIPT_DIR=`dirname $0` #relative path or, to get absolute path : INITIAL_DIR=`pwd` # Save current dir cd `dirname $0` # Go to script dir SCRIPT_DIR=`pwd` # Save script dir cd ${INITIAL_DIR} # Go back to initial directory Henning -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]