On Wed, 2007-05-16 at 09:42 -0600, Paul Seamons wrote:
> >     tgt=`expr substr $d 1 5`
> 
> All of the bash solutions will also try and move things like
> ..
> ..

none of the solutions that involved "*" would match ".." so it wouldn't
ever try to move ..

> foo
> fooba

yup.  'T'would be a problem.  However, the OP stated that each folder
began with a unique number code (5 digits long).  
> 
> The solutions still work, but they will get a lot of 
> 
> mv: cannot move `lib' to a subdirectory of itself, `lib/lib'

In this case, there will be no error messages.  But you're right; the
bash solutions are not generic.

> 
> 
> Paul
> 
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
> 


/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to