There isn't really a specific "script" for what you are requesting. It depends a lot on the types of requests you are sending and receiving, how they are formatted, the type of data in those requests, etc.
I would recommend you read the online help concerning "Modifying recorded traffic" within the TC help system as that will give you a good starting place.
Automated Testing Evangelists
Definition expert - noun - Unknown drip under pressure