From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 22:40:00 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 AFB3916A41F for ; Tue, 30 Aug 2005 22:40:00 +0000 (GMT) (envelope-from brianjohn@fusemail.com) Received: from smtp-gw2.fusemail.net (smtp-gw2.fusemail.net [65.61.162.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ABA843D48 for ; Tue, 30 Aug 2005 22:40:00 +0000 (GMT) (envelope-from brianjohn@fusemail.com) Received: from fusemail.com by smtp-gw2.fusemail.net with esmtp (FuseMail extSMTP) id 1EAEjy-0006JE-4i for freebsd-questions@freebsd.org; Tue, 30 Aug 2005 18:38:02 -0400 Received: from fusemail.com by fuse1.fusemail.net with asmtp (FuseMail extSMTP) id 1EAElh-0007Dz-Vo for freebsd-questions@freebsd.org; Tue, 30 Aug 2005 17:39:50 -0500 Message-ID: <433DBEC0.1030001@fusemail.com> From: Brian John User-Agent: Mozilla Thunderbird 1.0.5 (X11/20050718) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: , Date: Tue, 30 Aug 2005 22:40:00 -0000 X-Original-Date: Fri, 30 Sep 2005 17:40:00 -0500 X-List-Received-Date: Tue, 30 Aug 2005 22:40:00 -0000 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