> find . -name TRANS.TBL -exec rm {} \;
alternatively you could use:
rm `find . -name TRANS.TBL`
which would have some advantages regarding speed & system usage, as rm
wouldn't be called individually for each file, but rather once for all
files.
Benedikt
signoff
---
Benedikt Eric Heine
Don Prezioso <[EMAIL PROTECTED]> writes:
> find . -name TRANS.TBL -exec rm {} \;
find . -name TRANS.TBL -print0 | xargs -0 rm
is better as it starts many fewer processes.
Guy
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EM
On Tue, 31 Dec 1996, Don Prezioso wrote:
> all of the contents of bad.dir. From your description, I think you want
> to do something like this:
>
> find . -name TRANS.TBL -exec rm {} \;
>
Thanks to all who replied to my stupidity. This list is the greatest!
I use rm -r all the time, for it's pr
> Them rm -R command does do what you want. I have used it to delete an entire
^^
> subdirectory structure as in: rm -Rf subdir. Here, everything under subdir
> gets deleted, including the directory subdir itself.
OOPPP!!! I really meant: "the rm -Rf command DOES NO
On Tue, 31 Dec 1996, Dale Scheetz wrote:
> I just built a distribution tree from a CD on my hard disk. I tried to
> remove all the TRANS.TBL files from the tree by using:
> rm -r TRANS.TBL
> If I do this in a directory that has a TRANS.TBL it, and only it, gets
> removed. If I do this in an upper
> I just built a distribution tree from a CD on my hard disk. I tried to
> remove all the TRANS.TBL files from the tree by using:
> rm -r TRANS.TBL
> If I do this in a directory that has a TRANS.TBL it, and only it, gets
> removed. If I do this in an upper directory without a TRANS.TBL file, I
> ge
On Tue, 31 Dec 1996, Dale Scheetz wrote:
Hi Zwerg,
> I just built a distribution tree from a CD on my hard disk. I tried to
> remove all the TRANS.TBL files from the tree by using:
> rm -r TRANS.TBL
> Am I doing something wrong, or is this a bug in rm?
> TIA,
> Dwarf
You missunderstodd the purp
7 matches
Mail list logo