rm
Chiu, PCM (Peter)
P.C.M.Chiu at rl.ac.uk
Wed May 12 16:59:28 UTC 2004
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 at redhat.com [mailto:redhat-list-bounces at redhat.com]
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 at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list