Any ideas? Sure.. we've got plenty. Just post the question on a specific place where you got stuck, and we'll try and solve the problem. As for if such script exist, I am sure it does. Tho, it is such a small script that you prolly wouldn't find it standalone but rather as a part of a bigger script.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.