[Linux-disciples] Following symlinks in 'find'
Adam Rosi-Kessel
adam at rosi-kessel.org
Thu Oct 27 12:11:11 EDT 2005
Well, if you do your find from /, doesn't that give you absolute paths?
There may also be a formatting directive that does it--check the find info
page under printf ---> formatting directives.
Stephen R Laniel wrote:
> 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051027/2e9432f9/signature.pgp
More information about the Linux-disciples
mailing list