moving everything except a directory

Emanuel Strobl Emanuel.strobl at gmx.net
Tue Aug 30 22:52:47 GMT 2005


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 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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050831/6e37cbbd/attachment.bin


More information about the freebsd-questions mailing list