[CentOS] RM Help

R P Herrold herrold at owlriver.com
Tue Oct 26 17:31:04 EDT 2010


On Tue, 26 Oct 2010, Matt wrote:

> Is there a way to tell rm -f to only remove a file if its owned by say mail?

 	find . -user "$USERMATCH"-name "$FILENAME" \
 		-a -exec rm -f {} \;

or such ...

-- Russ herrold


More information about the CentOS mailing list