From owner-freebsd-questions@FreeBSD.ORG Sat Jan 28 23:33:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F56316A420 for ; Sat, 28 Jan 2006 23:33:50 +0000 (GMT) (envelope-from kirk@strauser.com) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F24F43D45 for ; Sat, 28 Jan 2006 23:33:49 +0000 (GMT) (envelope-from kirk@strauser.com) Received: from localhost (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id E051B95827 for ; Sat, 28 Jan 2006 17:33:48 -0600 (CST) Received: from kanga.honeypot.net ([127.0.0.1]) by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89209-06 for ; Sat, 28 Jan 2006 17:33:48 -0600 (CST) Received: from kanga.honeypot.net (unknown [IPv6:2001:470:1f01:224:1::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by kanga.honeypot.net (Postfix) with ESMTP id 0518595824 for ; Sat, 28 Jan 2006 17:33:47 -0600 (CST) From: Kirk Strauser To: freebsd-questions@freebsd.org Date: Sat, 28 Jan 2006 17:33:04 -0600 User-Agent: KMail/1.9.1 References: <927ad6550601271534r17a6ddb2jd90b930f744d170f@mail.gmail.com> <9873AD032E93C851484DF81B@utd59514.utdallas.edu> In-Reply-To: <9873AD032E93C851484DF81B@utd59514.utdallas.edu> X-Face: &'; cS03F?rr_w2Qce.d2f7xmwXfcJWDs>}CkpDw.c]ZJJ_)i0Nx X-Virus-Scanned: amavisd-new at honeypot.net Subject: Re: rm - Argument list too long X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2006 23:33:50 -0000 --nextPart1834166.81AvPFpyEV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 27 January 2006 17:52, Paul Schmehl wrote: > for files in *.* > do > rm $files > done Don't ever, *EVER* blindly unlink glob expansions. It's bad for you. Instead, use something like: find . -name 'sess.*' -delete =2D-=20 Kirk Strauser --nextPart1834166.81AvPFpyEV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD2/9a5sRg+Y0CpvERAtDNAKCPVTU4S+gEoBSxJsX9WwSULYUOvQCdH7Pl 1q9xGXIpwKUf5aXagB5huRg= =OrhP -----END PGP SIGNATURE----- --nextPart1834166.81AvPFpyEV--