OK I'm obviously new to this and don't know the correct format to represent my questions the best. I have got this code to work but I need it to work "Inplace"
As it is now it produces a 200mb file from a 16kb file.
sed -e :a -e '$!N;s/\nP//;ta' -e 'P;D'