Needed script to generate versions for a file and maintian them in a folder

need a shell script for the following requirement

how to generate 5 versions of a file in a folder

after generating them in a folder i want to maintian the past 2 versions of the file in the folder and i have to delete the the remaining.

for example if i ran the script today and tommorow it wil generate two 5 versions of the file in the folder,if i ran the same script day after tommorw then the folder should contain the present ,past versions of the file..

This is no script drive-in. What did you try so far?

i have three 5 version files in the folder as follows

testing_15122012.txt
testing_15122012.txt
testing_15122012.txt
testing_15122012.txt
testing_15122012.txt
testing_16122012.txt
testing_16122012.txt
testing_16122012.txt
testing_16122012.txt
testing_16122012.txt
testing_17122012.txt
testing_17122012.txt
testing_17122012.txt
testing_17122012.txt
testing_17122012.txt

i want the output as

testing_16122012.txt
testing_16122012.txt
testing_16122012.txt
testing_16122012.txt
testing_16122012.txt
testing_17122012.txt
testing_17122012.txt
testing_17122012.txt
testing_17122012.txt
testing_17122012.txt

the output should contain the present and last past version of the files...
the deletion should be done based on date and timestamp (as it should store the present and past one version of the files..)

You still did not show what you have tried so far. Also use code tags please.