It's better to make a tool to batch such job. As you said there is already tool for that, and are you convenient to share a copy for us? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,164316,164363#msg-164363