The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #2 (permalink)  
Old 05-29-2007
ennstate ennstate is offline
Registered User
  
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
Find & Remove

Hope this is what you are looking for,

Code:
find . -name '*MMDDYYYY*' -type f  -exec rm -i {} \;
I have added the option -i to the rm command.Incase you are sure to remove all the pattern matched files take out the "-i" and try.

Thanks
Nagarajan G