bug-bash
[Top][All Lists]
Advanced

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

Re: Deciphering links


From: Dave Rutherford
Subject: Re: Deciphering links
Date: Fri, 21 Sep 2001 10:27:09 -0400 (EDT)

On Fri, 21 Sep 2001, V. Mark Lehky wrote:

> I have posted this previously on gnu.utils.help, but they weren't any -
> help that is.
> 
> If I have a link, such as a -> b, how can find out the "b" part from a
> script?  Right now I am using `ls -o $item | awk '{print $10}'`.  There
> must be a more graceful way to do this.

$ man readlink

If your system doesn't have readlink(1), get it and build it
or write your own using readlink(2).

Dave

-- 
I'm antisesquipedalial -- and YOU should be, TOO!

Visit http://evilpettingzoo.com/dave/key.html for GnuPG 1.0 public key.
Key Fingerprint: E79F 7344 84A1 A0F2 653B  F700 9CDF B8D4 DA73 2AF7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]