moving everything except a directory
Mark Kane
mark at mkproductions.org
Tue Aug 30 22:47:19 GMT 2005
Brian John 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?
mv 1 3 4 5 6 7 8 9 10 new/
> What if I wanted to move everything but directories 2 and 7?
mv 1 3 4 5 6 8 9 10 new/
> I'm not sure how to use the mv command to do this in 1 comand.
man mv
SYNOPSIS
mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
-Mark
More information about the freebsd-questions
mailing list