replace CR LF in SED : I have a 1.5 GB Windows text file with some lines ending with LF and most of lines ending with CR+LF

Can you please help with SED script which 

 - a. will replace all CR+LF with $|$ 
 - replace all LF with CR+LF 
 - replace back all $|$ with CR+LF

