From owner-freebsd-questions Wed Aug 12 06:09:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA25692 for freebsd-questions-outgoing; Wed, 12 Aug 1998 06:09:53 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from netra.graphnet.com (netra.graphnet.com [192.206.112.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA25686 for ; Wed, 12 Aug 1998 06:09:49 -0700 (PDT) (envelope-from romank@graphnet.com) Received: from graphnet.com (roman.graphnet.com [192.206.112.93]) by netra.graphnet.com (8.8.8/8.8.6) with ESMTP id JAA15805 for ; Wed, 12 Aug 1998 09:09:24 -0400 (EDT) Message-ID: <35D195D9.CD9E1460@graphnet.com> Date: Wed, 12 Aug 1998 09:17:13 -0400 From: Roman Katsnelson Organization: Graphnet, Inc X-Mailer: Mozilla 4.05 [en] (WinNT; U) MIME-Version: 1.0 To: "q's" Subject: removing files Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Let's say I have a directory with la.txt and foo.sh and 6 million other files. Can I issue a command that says: delete everything BUT la.txt and foo.sh According to man rm there's no way to do it with that one. Is there an alternative? Thanks, Roman -- Roman Katsnelson UNIX Network Engineer Graphnet, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message