The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-28-2008
djdes22 djdes22 is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 7
Quote:
Originally Posted by danmero View Post
Why you need grep ? Read man find
Code:
find /path/to/dir/-07/ -type d -name "2006"  -exec rm -rf {} \;
doesnt work not deleted.

root@des:/media/2008-04-26/des# ls
Deepslauter-Rock_Em_All-(Reissue)-2007-VERiTAS Enjae-Enjae-2006-SMO

root@des:/media/2008-04-26/des# find /media/2008-04-26/des/ -type d -name "2006" -exec rm -rf {} \;

root@des:/media/2008-04-26/des# ls
Deepslauter-Rock_Em_All-(Reissue)-2007-VERiTAS Enjae-Enjae-2006-SMO

Last edited by djdes22; 04-28-2008 at 12:26 PM..