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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-24-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,350
guess #1 You are using a glob patter for name and it is being incorrectly expanded due to the way you are quoting the expression.

try:

Code:
"find $1 -type f -name \"$2\" -mtime +1 -exec rm '{}' \;"