[CentOS] RM Help

Markus Falb markus.falb at fasel.at
Tue Oct 26 17:34:11 EDT 2010


On 26.10.10 23:23, Matt wrote:
> Is there a way to tell rm -f to only remove a file if its owned by say mail?
> 
> Matt

maybe something like this (untested)
#$ find /path -type f -a -user mail -exec rm {} \;

-- 
Best Regards,
Markus Falb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.centos.org/pipermail/centos/attachments/20101026/939d6242/attachment.bin 


More information about the CentOS mailing list