From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 13:07:11 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 D3B8616A41F for ; Fri, 9 Sep 2005 13:07:11 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F58643D45 for ; Fri, 9 Sep 2005 13:07:11 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j89D7A3T026225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Sep 2005 06:07:10 -0700 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.8/Submit) id j89D794k026187; Fri, 9 Sep 2005 06:07:09 -0700 Date: Fri, 9 Sep 2005 06:07:08 -0700 From: "Loren M. Lang" To: Brian John Message-ID: <20050909130708.GA3018@alzatex.com> References: <433DBEC0.1030001@fusemail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: <433DBEC0.1030001@fusemail.com> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Cc: freebsd-questions@freebsd.org 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: Fri, 09 Sep 2005 13:07:11 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 30, 2005 at 05:40:00PM -0500, Brian John wrote: > Say I am at ~ and I have 10 directories inside named 1, 2, 3, 4 ,5, 6,=20 > 7, 8, 9 and 10. What command can I use to move everything but directory= =20 > 2? What if I wanted to move everything but directories 2 and 7? >=20 find ~ -mindepth 1 -maxdepth 1 ! -name 2 -exec mv {} /path/to/new/place find ~ -mindepth 1 -maxdepth 1 ! -name 2 ! -name 7 -exec mv {} /path/to/new= /place > I'm not sure how to use the mv command to do this in 1 comand. >=20 > Thanks >=20 > /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.o= rg" >=20 --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 =20 --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDIYj8bTXoRwEYo9IRAgyIAJ0fYnGgeRj0kS6Sv96Mi2AAv1leYgCeKuDm LWNP4AE5OgTl4FEaexoaJPA= =yMpx -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--