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

Join Date: May 2007
Location: Roanoke, VA
Posts: 11
Searching directory tree

I'm currently trying to write a script that will do the following:

search a given directory tree for a file with MMDDYYYY in the name.
delete those files only.

I can't figure out how to make the script delete the files with the MMDDYYYY in the filename after finding them.

Should I export it to another file, have the script read the file and then delete the entries? If so, how?

Thanks in advance!