[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: obtaining the absolute path of a shell script within itself

also sprach Leonard Stiles (on Sat, 21 Jul 2001 05:45:57PM +0200):
> abspath=$(cd ${1%/*} && echo $PWD/${0##*/})

man, i *could* have figured that out myself.
beautuitous, as i like to say


martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
i took an iq test and the results were negative.

Attachment: pgpYTZ1vxgJm0.pgp
Description: PGP signature

Reply to: