Article 509S1 [SOLVED] merge lines bash

[SOLVED] merge lines bash

by
pedropt
from LinuxQuestions.org on (#509S1)
in this file with this text :

Quote:
http://somelink/fdgfdgdf/
restofthelink
http://otherlink/dfgdfg/
blablabla
...
etc
i want it to bet like this :
Quote:
http://somelink/fdgfdgdf/restofthelink
http://otherlink/dfgdfg/blablabla
...
etc
how can i do this ?
I am pretty sure is not complicated with sed , and i found some examples i could not get to work here like :
Code:sed 'H;1h;$!d;g;s/\n */http/g' myfilefrom this link

https://unix.stackexchange.com/quest...-previous-line

anyone have an idea ?latest?d=yIl2AUoC8zA latest?i=pzDbiWTcayY:XmZg8usy19I:F7zBnMy latest?i=pzDbiWTcayY:XmZg8usy19I:V_sGLiP latest?d=qj6IDK7rITs latest?i=pzDbiWTcayY:XmZg8usy19I:gIN9vFwpzDbiWTcayY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments