moving everything except a directory

Stefan Farrenkopf sfarren at gwdg.de
Mon Sep 19 11:57:24 PDT 2005


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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"




More information about the freebsd-questions mailing list