OT: bash question

Frantisek Hanzlik franta at hanzlici.cz
Mon Jan 31 21:24:04 UTC 2011


Alan J. Gagne wrote:
>> 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.
> 
> echo `ls -la $0`

This will point only to first target. "readlink" has switches for
recursive resolv.


More information about the users mailing list