Date: Sat, 27 Jul 1996 11:18:03 -0400 (EDT) From: Marc Ramirez <mrami@mrami.com> To: Annelise Anderson <andrsn@andrsn.stanford.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Deleting a Link Farm Message-ID: <Pine.BSF.3.91.960727111633.27813D@boner.mrami.com> In-Reply-To: <Pine.BSI.3.94.960727001606.11359B-100000@andrsn.stanford.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 27 Jul 1996, Annelise Anderson wrote: > I've had /usr/ports linked to /cdrom/ports with lndir; in addition to > the symbolic links, quite a few regular files also existed in various > directories. > > I couldn't find any direct way to remove the links lndir created, so > I used find to find symbolic links and remove them, then found the > regular files and moved them, and finally used rm -R to get rid of > all the empty directories. > > Is there an easier way, or a way to remove only empty directories and > leave those with regular files? find /usr/ports -type l -exec rm {} \; will delete all symbolic links. Marc. -- I doubt, therefore I might be.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960727111633.27813D>