[more profuse apologies if this happens to double-post...]
>On 02/06/2012 09:18 AM, Frank Murphy wrote:
>> My logic is failing me, usually does.
>> How can I run:
>> rmdir /home/frank/*
>> but exclude my nfs mountpoints
>>Do this first:
>> for mp in mp1 mp2; do touch ~/$mp/.dont_rmdir; done
This is much better than my solution, albeit
it does assume (1) The dirs are writable;
and (2) The dirs are in the same state (either
mounted or not-mounted) whenever the ‘rmdir’
is run later.
“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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!