From owner-freebsd-questions Sat Aug 26 1:24:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from finland.ispro.net.tr (finland.ispro.net.tr [212.174.120.1]) by hub.freebsd.org (Postfix) with ESMTP id 3361837B43E for ; Sat, 26 Aug 2000 01:24:11 -0700 (PDT) Received: from localhost (yurtesen@localhost) by finland.ispro.net.tr (8.9.3/8.9.3) with ESMTP id LAA17386 for ; Sat, 26 Aug 2000 11:25:00 +0300 (EEST) (envelope-from yurtesen@ispro.net.tr) Date: Sat, 26 Aug 2000 11:25:00 +0300 (EEST) From: Evren Yurtesen To: freebsd-questions@freebsd.org Subject: how to delete all files but the XYZ file. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Lets say I have 1230 files in one directory and I want to delete all of the files but not the files named XYZ, XYA, XYB etc. I want to do this from shell without using any file managers. (since actually I need to do this from a script) Evren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message