Date: Fri, 9 Sep 2005 06:07:08 -0700 From: "Loren M. Lang" <lorenl@alzatex.com> To: Brian John <brianjohn@fusemail.com> Cc: freebsd-questions@freebsd.org Subject: Re: moving everything except a directory Message-ID: <20050909130708.GA3018@alzatex.com> In-Reply-To: <433DBEC0.1030001@fusemail.com> References: <433DBEC0.1030001@fusemail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050909130708.GA3018>
