[lug] Removing hidden directory recursively

Paul Nowosielski paul at celebrityaccess.com
Fri Apr 21 15:10:36 MDT 2006


Thank You!

-- 
Paul Nowosielski

On Fri, 2006-04-21 at 14:58, Hugh Brown wrote:
> Also cd to the parent dir of the web directory before executing it (the .
> in find .)
> 
> Hugh
> 
> On Fri, 21 Apr 2006, Hugh Brown wrote:
> 
> >
> > find . -type d -name .svn -exec echo {} \;
> >
> > to make sure you aren't getting something you didn't intend and then
> >
> > find . -type d -name .svn -exec rm -rf {} \;
> >
> > depending on how many there are you can also use:
> >
> > find . -type d -name .svn -print0 |xargs -0 rm -rf
> >
> > Hugh
> >
> > On Fri, 21 Apr 2006, Paul Nowosielski wrote:
> >
> > > Dear All,
> > >
> > > I'm trying to remove 1000's of .svn files from a web directory.
> > > Can any one give me a tip on how to do this with a one line command?
> > >
> > > Best,
> > >
> > > --
> > > Paul Nowosielski
> > >
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug





More information about the LUG mailing list