Discussion
:
Finding absolute path of a script from within
Afficher un message
14/03/2008, 14h45
#
5
Florian Kaufmann
Messages: n/a
Hébergeur:
Re: Finding absolute path of a script from within
> where_am_i=$((cd $(dirname $0) && pwd))
>
> Or is there any other/easier way?
How about
where_am_i=$(dirname $0)
Florian Kaufmann
Page generated in
0,04755
seconds with
9
queries