Date: Mon, 06 Apr 2009 23:11:04 +0200 From: Julien Cigar <jcigar@ulb.ac.be> To: John Almberg <jalmberg@identry.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to remove all files with a certain extension Message-ID: <1239052264.1152.0.camel@rivendell.lan> 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 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 . -name *.tar -exec rm /dev/null {} \;
>
find . -type f -name "*.tar" -delete
> What am I doing wrong?
>
> Thanks: John
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
--
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jcigar@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1239052264.1152.0.camel>
