Extracting the linked to file name
Peter Barker
pbarker at barker.dropbear.id.au
Wed Nov 14 11:20:03 EST 2001
On Wed, 14 Nov 2001, Rasjid Wilcox wrote:
> I have one more thing to resolve. I need to extract the name of the
> file that a symbolic link points to. Can anyone suggest a better way
> than
How about the "--dereference" option to ls"?
filename=`ls -L symlink.name`
> Rasjid.
Yours,
--
Peter Barker | N _--_|\ /---- Barham, Vic
Programmer,Sysadmin,Geek | W + E / /\
pbarker at barker.dropbear.id.au | S \_,--?_*<-- Canberra
You need a bigger hammer. | v [35S, 149E]
qq%I've never heard of it or used it, apart from finding it in the Camel
book and saying "Oh god".% -- Onceler
More information about the linux
mailing list