>       tgt=`expr substr $d 1 5`

All of the bash solutions will also try and move things like
.
..
foo
fooba

The solutions still work, but they will get a lot of 

mv: cannot move `lib' to a subdirectory of itself, `lib/lib'


Paul

/*
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