With zsh (pardon the advocacy) this should do it: #!/bin/zsh cd /home/george/Maildir for a in **(/) ; do aoximport /users/gp/frommaildir/$a $a ; done
With ash or bash you have to do something like "for a in $(find . -type d); do ...", which works too as long as the directory names aren't too fancy.
Arnt
