Try to see the good in what is happening in your life as you go through this. It is a very painful experience, but you will be amazed when you look back in a few years at what a strong, capable person you are. Be good to yourself!
You're going to be just fine. Do your best to overcome those doubts you have about yourself after having been berated so long. I remember quite some time after my divorce, my ex was accusing me of always. . .(whatever). For the first time, I realized that he had used this as a weapon throughout our marriage and this was how he'd kept me down. The reality was, that most of the negative things he'd always berated me with, were things that he secretly didn't like about himself-they really had nothing to do with me! I took some time before even looking at another man, and was very selective. I've been married almost 20 years to a wonderful man. I pray this will happen for you, too.