OT: bash question

Frantisek Hanzlik franta at hanzlici.cz
Mon Jan 31 21:16:09 UTC 2011


Mike Wright wrote:
> Alan J. Gagne wrote:
>> You could try echo $0 from inside you script.
> 
> Thanks Alan.
> 
> My mistake.  I forgot to say that the file was invoked from a link. 
> Your proposed solution shows the link's location.  I have to discover 
> the target of the link.
> 
> Ever onward!

/bin/readlink from coreutils


More information about the users mailing list