Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2005 20:56:51 +0200
From:      Stefan Farrenkopf <sfarren@gwdg.de>
To:        Brian John <brianjohn@fusemail.com>, freebsd-questions@freebsd.org
Subject:   Re: moving everything except a directory
Message-ID:  <4FAAF77CB8CDFA4549D612CB@dfnhome046.gwdg.de>
In-Reply-To: <433DBEC0.1030001@fusemail.com>
References:  <433DBEC0.1030001@fusemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

you may use find ~ -<some-usefull-options-and-arguments> -exec mv {} 
<new-location>

BTW: your mail is out of date.

best wishes,
Stefan

--On 30. September 2005 17:40:00 -0500 Brian John <brianjohn@fusemail.com> 
wrote:

> 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
> _______________________________________________
> 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"





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