Re: rm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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     


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux