From owner-freebsd-questions Sat Aug 26 18:30:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 74FD637B43C for ; Sat, 26 Aug 2000 18:30:05 -0700 (PDT) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.16 #1) id 13SqwG-000OZd-00; Sun, 27 Aug 2000 02:08:44 +0100 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.9.3/8.9.3) id CAA72440; Sun, 27 Aug 2000 02:08:44 +0100 (BST) (envelope-from ben) Date: Sun, 27 Aug 2000 02:08:44 +0100 From: Ben Smithurst To: "Philip M. Gollucci" Cc: Evren Yurtesen , freebsd-questions@FreeBSD.ORG Subject: Re: how to delete all files but the XYZ file. Message-ID: <20000827020844.D64260@strontium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Philip M. Gollucci wrote: > the rm command supports regex expressions. No it doesn't. The rm command supports neither regexes nor glob patterns. Most *shells* support glob patterns, though they can't easily be used for this case, and I'm not sure how much regexes would help, if any shells support that. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message