How to remove all files with a certain extension
John Almberg
jalmberg at identry.com
Mon Apr 6 14:06:05 PDT 2009
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 -exec rm /dev/null {} \;
>
> What am I doing wrong?
Oh, duh... that /dev/null shouldn't be there.
-- John
More information about the freebsd-questions
mailing list