On Thu, Oct 29, 2009 at 2:31 PM, Ken D'Ambrosio <k...@jots.org> wrote: > find -type d | while read i > do > grep moe "$i/*" && mv "$i" /path/to/destination || echo "mv didn't work: $?" > done
Hmmm, does the "find" execute concurrently with the "grep"? If it does, then you're liable to confuse the hell out of "find" if you manage to move a directory which is a component of the path it's currently trasversing. -- Ben _______________________________________________ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/