Re: How to remove all files with a certain extension

2009-04-06 Thread John Almberg
On Apr 6, 2009, at 5:11 PM, Dan Nelson wrote: In the last episode (Apr 06), John Almberg said: This is a real newbie question, but I can't figure it out... I want to remove all .tar files from a directory tree. I think something like the following should work, but I must have something wron

Re: How to remove all files with a certain extension

2009-04-06 Thread Dan Nelson
In the last episode (Apr 06), John Almberg said: > This is a real newbie question, but I can't figure it out... > > I want to remove all .tar files from a directory tree. I think something > like the following should work, but I must have something wrong, because > it doesn't: > > find . -name *.

Re: How to remove all files with a certain extension

2009-04-06 Thread Julien Cigar
On Mon, 2009-04-06 at 16:57 -0400, John Almberg wrote: > This is a real newbie question, but I can't figure it out... > > I want to remove all .tar files from a directory tree. I think > something like the following should work, but I must have something > wrong, because it doesn't: > > find

Re: How to remove all files with a certain extension

2009-04-06 Thread Anton Yuzhaninov
On Mon, 6 Apr 2009 16:57:39 -0400, John Almberg wrote: JA> This is a real newbie question, but I can't figure it out... JA> JA> I want to remove all .tar files from a directory tree. I think JA> something like the following should work, but I must have something JA> wrong, because it doesn't:

Re: How to remove all files with a certain extension

2009-04-06 Thread John Almberg
On Apr 6, 2009, at 4:57 PM, John Almberg wrote: This is a real newbie question, but I can't figure it out... I want to remove all .tar files from a directory tree. I think something like the following should work, but I must have something wrong, because it doesn't: find . -name *.tar -e

How to remove all files with a certain extension

2009-04-06 Thread John Almberg
This is a real newbie question, but I can't figure it out... I want to remove all .tar files from a directory tree. I think something like the following should work, but I must have something wrong, because it doesn't: find . -name *.tar -exec rm /dev/null {} \; What am I doing wrong? Tha