Deleting directories

Deleting directories

Post by System administrat » Fri, 29 Sep 1995 04:00:00



 >   I have a quick question. I have a directory structure,
 >   including multiple levels of directories underneath. I
 >   want to "rm" the first 2 levels and retain the rest. It
 >   is probably a simple option, but input from the outside

        rm * */*

Be careful ;-)

Heiner
--
   ------------------------------------------------------------------


------------------------------------------------------------------
:q!ZZ^X^Cquit^Mexit^J^D^Cbye^Mlogout^M^?^\xxxxalles kacke

 
 
 

Deleting directories

Post by Phil Edwar » Fri, 29 Sep 1995 04:00:00




+       I have a quick question. I have a directory structure, including
+       multiple levels of directories underneath. I want to "rm" the
+       first 2 levels and retain the rest. It is probably a simple
+       option, but input from the outside world help. Besides, I want
+       to test the efficiency of our news group. :-)

Use mv to pull the third level up to the root (thereby pulling all
the rest along with it) and then "rm -r" the original two levels.
You cannot simply chop levels out of the middle of the tree and
expect the "dangling root" to search upwards and attach itself to a
dangling leaf...  :-)

--
#include<std/disclaimer.h>                       The gods do not protect fools.
Phil Edwards                                                Fools are protected