From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 22:52:47 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 4C39316A41F for ; Tue, 30 Aug 2005 22:52:47 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6FB3E43D45 for ; Tue, 30 Aug 2005 22:52:46 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 30 Aug 2005 22:52:45 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp021) with SMTP; 31 Aug 2005 00:52:45 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org Date: Wed, 31 Aug 2005 00:52:23 +0200 User-Agent: KMail/1.8.1 References: <433DBEC0.1030001@fusemail.com> In-Reply-To: <433DBEC0.1030001@fusemail.com> X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart11900999.W10CxIgeS4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508310052.41873@harrymail> X-Y-GMX-Trusted: 0 Cc: Brian John 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: Tue, 30 Aug 2005 22:52:47 -0000 --nextPart11900999.W10CxIgeS4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Am Samstag, 1. Oktober 2005 00:40 CEST schrieb Brian John: > 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? See regular expressions, for example 'mv ^[2,7] /another/dir' would do the job. You should correct your date! ntpdate is helpful! -Harry > 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" --nextPart11900999.W10CxIgeS4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDFOM5Bylq0S4AzzwRAsBzAJ0UfOEh2YkShvmBm5DSBHAi2WL5PQCfTAcf 1G6YGNWPERrg/jTmR2EVbOg= =CNvJ -----END PGP SIGNATURE----- --nextPart11900999.W10CxIgeS4--