RE: rm

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

 



How about

find directory -name ".htaccess" -exec rm -f {} \;

To be sure, you can list out the files first 

find directory -name ".htaccess" -exec ls -ls {} \; 

Peter Chiu

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]
On Behalf Of Donna Appleget
Sent: 12 May 2004 16:16
To: General Red Hat Linux discussion list
Subject: rm


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


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


-- 
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