in reply to pdb spliting

Hi abhi4.amity,
..plz give me some hints or code.

People are really willing and ready to help you achieve your desired aim, if only you will show what you have done and how you are having problems making your program work.
Asking people to come up with scripts to solve a problem for you is not it.
Please check How do I post a question effectively?

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me