modify the cat tmp file