use script to generate test2.txt