[Linux-disciples] Following symlinks in 'find'
Adam Rosi-Kessel
adam at rosi-kessel.org
Thu Oct 27 12:44:29 EDT 2005
What about chdiring into the directory you want, running find on ., and then
prepending the output of `pwd`? That should be a UNIX-agnostic way to
accomplish the goal.
Stephen R Laniel wrote:
> On Thu, Oct 27, 2005 at 12:11:11PM -0400, Adam Rosi-Kessel wrote:
>> Well, if you do your find from /, doesn't that give you absolute paths?
>
> I don't really want to run it from /; I need the script to
> run fairly quickly, and all I want to find are the scripts
> in /etc/init.d that are invoked from /etc/rc[0-9].d.
>
>> There may also be a formatting directive that does it--check the find info
>> page under printf ---> formatting directives.
>
> Will do. Thanks for helping me.
-------------- 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/5973bb7a/signature.pgp
More information about the Linux-disciples
mailing list