sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #49342
Re: Rekursiv rmdir
[mand, så quota da lidt ... ;-) ]
> den nemmeste er nok,
>
> find /tom -type d -exec rmdir {} \;
>
> det vil køre rmdir på alle bibs under /tom, meen uden -f vil rmdir kun
> fjerne tomme biblioteker og klage hvis de ikke er det :-)
Hmm. Vil den ikke fejle - den finder jo forældre bibs _først_. Måske
find /tom -type d -depth -exec rmdir {} \;
vil virke (har dog ikke prøvet).
Mads
--
Mads Bondo Dydensborg. madsdyd@xxxxxxxxxxxx
The only way to truely protect your data is to grind up your hard drive
into powder, magnetize it all, then heat it into a liquid. Cool and grind
it up again, scatter it into the wind, and just HOPE entropy does the
rest.
- ./ comment on network security
Follow ups
References