Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2005 00:52:23 +0200
From:      Emanuel Strobl <Emanuel.strobl@gmx.net>
To:        freebsd-questions@freebsd.org
Cc:        Brian John <brianjohn@fusemail.com>
Subject:   Re: moving everything except a directory
Message-ID:  <200508310052.41873@harrymail>
In-Reply-To: <433DBEC0.1030001@fusemail.com>
References:  <433DBEC0.1030001@fusemail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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"

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBDFOM5Bylq0S4AzzwRAsBzAJ0UfOEh2YkShvmBm5DSBHAi2WL5PQCfTAcf
1G6YGNWPERrg/jTmR2EVbOg=
=CNvJ
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508310052.41873>