[Linux-disciples] Following symlinks in 'find'

Stephen R Laniel steve at laniels.org
Thu Oct 27 10:44:00 EDT 2005


On Wed, Oct 26, 2005 at 05:07:50PM -0400, Adam Rosi-Kessel wrote:
> How about
> 
> 	find /etc/rc[0-9].d -type l -printf "%l\n"
> 
> Does that do what you want?

It seems to; thanks a bunch.

Next step: take the (sometimes) relative paths returned by
that find command and turn them into absolute paths.
realpath(1) is available, but it doesn't seem to come
standard with every UNIX. Is there a portable (which is to
say, I guess, POSIX-compliant) realpath equivalent?

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051027/6e113638/attachment.pgp


More information about the Linux-disciples mailing list