how to recursively symlink every file in a dir

Chad Perrin perrin at apotheon.com
Thu Sep 9 20:57:49 UTC 2010


On Thu, Sep 09, 2010 at 04:28:59PM -0400, Garance A Drosehn wrote:
> 
> I believe early X11-distributions had a script called "lndir"
> would pretty much do exactly what you want here.  And then
> there was a companion command called "breakln" which would
> remove the symlink and make a copy of the original file to
> replace it.

lndir is in ports:

    > pkgsearch lndir
    /usr/ports/devel/lndir

I'm not so sure about a "breakln" being anywhere accessible, other than
whatever tools you have handy.


> 
> I don't know if X11 still has these commands (I haven't
> installed X11 in at least 10 years), but I have my own
> versions of them.  Let me know if you can't find them, and
> I'll send you copies of my scripts.

I'd like to see what you have, even if the OP doesn't need them.  Are
they of your own making, or copied from somewhere?

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100909/ec5ce06f/attachment.pgp


More information about the freebsd-questions mailing list