Extracting the linked to file name

Martijn van Oosterhout kleptog at svana.org
Wed Nov 14 14:25:21 EST 2001


On Wed, Nov 14, 2001 at 12:22:52PM +1100, Anthony Wesley wrote:
> $ filename=`readlink symlink.name`
> bash: readlink: command not found

Wierd.

# readlink 
usage: readlink [-n] [-f] symlink
# dpkg -S `which readlink`
tetex-bin: /usr/bin/readlink

Huh? Seems like an odd place for a program like that. Look like it's not
standard though...

Oh, well. You can always use perl...
-- 
Martijn van Oosterhout <kleptog at svana.org>
http://svana.org/kleptog/
> Magnetism, electricity and motion are like a three-for-two special offer:
> if you have two of them, the third one comes free.




More information about the linux mailing list