Hi Martin, that was quick, thank you. However I would feel better if we had Chris' approval. Also I've just realized that I forgot to quote the $LOK variable in the two mkdir statements in the second patch. Very sorry about that. So if you could please replace the two mkdir $LOK statements in and before the while loop with mkdir "$LOK" Thank you. Regards, Philipp