Hi, how to delete several files in a recursive way

David Kramer david-8uUts6sDVDvs2Lz0fTdYFQ at public.gmane.org
Mon Mar 1 01:25:12 EST 2010


Franco castro wrote:
> Hi, I need to delete all .htaccess in all folders, but we are talking about
> houndreds of folders, I need to figuer out how to "find and destroy" delete
> all those files, I'm not very good with bin bash scripting, so maybe any of
> yours know how to do it, tnks =)
> _______________________________________________
> Discuss mailing list
> Discuss-mNDKBlG2WHs at public.gmane.org
> http://lists.blu.org/mailman/listinfo/discuss

I am assuming you want to find those files under /var/www/.  If that is
wrong, the substitute that for wherever you want to start.

find /var/www -name .htaccess -delete






More information about the Discuss mailing list