The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Err while using find command
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Err while using find command
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-24-2007
reborg
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 '{}' \;"
reborg
View Public Profile
Find all posts by reborg