Re: The directory that I am trying to clean up is huge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> fred smith wrote:
>> On Mon, Jan 25, 2010 at 03:14:54AM -0800, John Doe wrote:
>>> From: Anas Alnaffar <a.alnaffar@xxxxxxxxxxxxxxxxx>
>>>> I tried to run this command
>>>> find -name "*.access*" -mtime +2 -exec rm {} \;
>>>> and I have same error message
>>> How many "*.access*" are there...?
>>>
>> if there are so many that you're finding the previously suggested
>> techniques difficult to use, you can try the brute-force I sometimes
>> use...
>
> It actually shouldn't matter.  As long as the wildcards are quoted on the
> command line, you shouldn't get an error from too many files.  I suspect
> the command that was typed wasn't exactly what is shown above.

First, I don't see the path there, which *must* be after the command....

Also, I don't believe that "" will work - the shell will interpret that. I
think you need '', or, what I always use, \, so that if I were typing it,
I'd have:
$ find . -name \*.access\* -mtime +2 -exec rm {} \;

          mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux