My sed command does not work as expected.
sed -E ':a;N;$!ba;s/[^\.](\[[0-9]]) \n\n/\1 /g'
I want this :
blabla[3]
foofoo
barbar.[4]
blabla
To become :
blabla[3] foofoo
barbar.[4]
blabla
That is, I just want the new lines to be deleted when there is no dot before "[".
But my sed command does not take into account my [^\.].
Without [^\.], I get :
blabla[3] foofoo
barbar.[4] blabla