From owner-freebsd-questions@FreeBSD.ORG Mon Sep 19 18:57:23 2005 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 EAE6C16A41F for ; Mon, 19 Sep 2005 18:57:23 +0000 (GMT) (envelope-from sfarren@gwdg.de) Received: from mailer.gwdg.de (mailer.gwdg.de [134.76.10.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D78443D45 for ; Mon, 19 Sep 2005 18:57:22 +0000 (GMT) (envelope-from sfarren@gwdg.de) Received: from dfnhome046.gwdg.de ([134.76.22.46]) by mailer.gwdg.de with esmtp (Exim 4.42) id 1EHQot-0004Dk-NI; Mon, 19 Sep 2005 20:56:52 +0200 Date: Mon, 19 Sep 2005 20:56:51 +0200 From: Stefan Farrenkopf To: Brian John , freebsd-questions@freebsd.org Message-ID: <4FAAF77CB8CDFA4549D612CB@dfnhome046.gwdg.de> In-Reply-To: <433DBEC0.1030001@fusemail.com> References: <433DBEC0.1030001@fusemail.com> X-Mailer: Mulberry/4.0.0 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Level: / X-Spam-Report: Content analysis: 0.0 points, 6.0 required X-Virus-Scanned: (clean) by exiscan+sophie Cc: Subject: Re: moving everything except a directory 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: Mon, 19 Sep 2005 18:57:24 -0000 Hello, you may use find ~ - -exec mv {} BTW: your mail is out of date. best wishes, Stefan --On 30. September 2005 17:40:00 -0500 Brian John wrote: > Say I am at ~ and I have 10 directories inside named 1, 2, 3, 4 ,5, 6, 7, > 8, 9 and 10. What command can I use to move everything but directory 2? > What if I wanted to move everything but directories 2 and 7? > > I'm not sure how to use the mv command to do this in 1 comand. > > Thanks > > /Brian > _______________________________________________ > 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"