Date: Mon, 6 Apr 2009 17:06:02 -0400 From: John Almberg <jalmberg@identry.com> To: John Almberg <jalmberg@identry.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to remove all files with a certain extension Message-ID: <0DC256B7-C28C-40C8-837B-A3D18E858C3F@identry.com> In-Reply-To: <5BF30BAA-2B35-46C8-8257-56B077D00A8C@identry.com> References: <5BF30BAA-2B35-46C8-8257-56B077D00A8C@identry.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0DC256B7-C28C-40C8-837B-A3D18E858C3F>