[svlug] Shell scripting is biting me! :)

Felipe Leme felipeal at iname.com
Tue Sep 18 16:40:02 PDT 2001


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}"








More information about the svlug mailing list