Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2004-06-19, 11:56 AM   #2
airdick
Shut up brain, or I'll stab you with a Q-tip!
 
Join Date: Aug 2003
Posts: 114
With find the -type f option specifies a plain file, -type d is a directory.

Something like this will work for empty directories:

find . -type d -name _vti_cnf -exec /bin/rmdir {} \;

If the directories aren't empty this will work to recursively delete the directory and everything below it:

find . -type d -name _vti_cnf -exec /bin/rm -r {} \;


Standard disclaimers apply- A simple typo will trash your whole filesystem right out from under you in a hurry. Make a backup and do some safety checks to test whatever method you settle on before actually adding the commands that will delete anything.
airdick is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:21 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc