Dan Armbrust wrote:
> I'm trying to find a variable or a command that will tell me where the
> currently executing script lives.
> 
> So, If I'm running /foo/bar.sh, I'm looking for a something that will
> give me "/foo/", while I'm inside the script bar.sh.
> 

$ dirname /foo/bar.sh
/foo
$