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 09-01-2007
vats vats is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 10
script to delete files

hi guys,

i need a script to delete files that have core in their name ...it might be part of the file name or as a .core extension ...any file that has core as its extension....

i am only able to delete files which just have thier name as core

using this :

find $1 -type f -name "core" -exec rm -f {} \;

i am passing the directory to look for a a command line argument...

can anybody help me with this please....????