[ILUG] Re: rmdir --exclude=foo-dir?
Brian Foster
blf at utvinternet.ie
Fri Feb 10 14:16:02 GMT 2012
[apologies if this double-posts]
> How can I run:
> rmdir /home/frank/* but exclude my nfs mountpoints
Assuming the mount points are mounted,
and you are using GNU find(1):
find /home/frank/* -maxdepth 0 -type d ! -fstype nfs -exec rmdir {} +
cheers!
-blf-
--
“How many surrealists does it take to | Brian Foster
change a lightbulb? Three. One calms | somewhere in south of France
the warthog, and two fill the bathtub | Stop E$$o (ExxonMobil)!
with brightly-coloured machine tools.” | http://www.stopesso.com
More information about the ILUG
mailing list