And by the time all that is typed, or other proposed solutions are compiled, etc... a normal rm -rf Blah & would complete...
-Christopher
--4vu0d+lqoSa2/ZEk Content-Type: text/plain; charset=us-ascii
1999-12-14-05:24:06 Eyal Traitel:
A small perl script or C code calling ``unlink'' is probalby your best bet.
Can you publish one here ?
How about
find DIR -depth -print0|perl -0 -lne '-d $_ ? rmdir : unlink'
or for an all-perl solution:
perl -MFile::Find -e 'finddepth(sub{-d $_?rmdir:unlink unless /^..$/},"DIR")'
-Bennett
--4vu0d+lqoSa2/ZEk Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.0 (GNU/Linux) Comment: For info see http://www.gnupg.org
iD8DBQE4VnZWL6KAps40sTYRAdAAAJ4isViKZRKr/yWWx+r8xTAFIlhcWACdGv8U MMZrFlsBn7K9726TDQ3quLc= =eqXy -----END PGP SIGNATURE-----
--4vu0d+lqoSa2/ZEk--