Re: [CentOS] rm user:group

2009-03-10 Thread Brian Mathis
On Tue, Mar 10, 2009 at 10:39 AM, Matt wrote: > I want to remove files but only if they are owned by a certain user and group. > > Basically I have this: > > find /var/spool/greylist -mmin +363 -exec rm -f {} \; > > I want to make sure it only deletes files owned by mail.  Basically no > matter wh

Re: [CentOS] rm user:group

2009-03-10 Thread Steve Huff
On Mar 10, 2009, at 10:39 AM, Matt wrote: I want to remove files but only if they are owned by a certain user and group. Basically I have this: find /var/spool/greylist -mmin +363 -exec rm -f {} \; I want to make sure it only deletes files owned by mail. Basically no matter what weird cha

Re: [CentOS] rm user:group

2009-03-10 Thread Paul Heinlein
On Tue, 10 Mar 2009, Matt wrote: > I want to remove files but only if they are owned by a certain user > and group. > > Basically I have this: > > find /var/spool/greylist -mmin +363 -exec rm -f {} \; Find supports -user and -group arguments, e.g., find /var/spool -user mail -group mail -mmi

Re: [CentOS] rm user:group

2009-03-10 Thread John Doe
From: Matt > I want to remove files but only if they are owned by a certain user and group. > Basically I have this: > find /var/spool/greylist -mmin +363 -exec rm -f {} \; > I want to make sure it only deletes files owned by mail. Basically no > matter what weird characters are in the file name

[CentOS] rm user:group

2009-03-10 Thread Matt
I want to remove files but only if they are owned by a certain user and group. Basically I have this: find /var/spool/greylist -mmin +363 -exec rm -f {} \; I want to make sure it only deletes files owned by mail. Basically no matter what weird characters are in the file names I want to make sur