rm

Gary Stainburn gary.stainburn at ringways.co.uk
Wed May 12 15:15:44 UTC 2004


On Wednesday 12 May 2004 4:16 pm, Donna Appleget wrote:
> Does anyone know how to delete files with the same name recursively?
>
> I update my web mirror site every night going from a Frontpage enabled
> site that I admin to a remote site where I only have user privilidges.
>
> I have to delete those lovely .htaccess files out of every web in order
> to view the files on the remote/mirror site.
>
> I wish I could do this:
>
> rm -R .htaccess
>
> and have it delete all of them at once.
>
> Does anyone know of a way to make this work?
>
> d

find . -name .htaccess -exec rm {} \;
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     





More information about the redhat-list mailing list