Ivan Passos wrote: >don't know how to do that ... :( Besides, I believe there must be a more >elegant solution to this problem!! > Yes, there is: #!/bin/bash PROJ_ROOT=`dirname $0` echo "The root dir is ${PROJ_ROOT}"