KevinMcKloud
Programmer
hola, i've tried lots of stuffs to join two lines,
i know its very simple but im stuck in it... =/
input:
=======================
# uno dos tres
Clave cuatro cinco seis
siete
ocho
=======================
# uno dox trex cuatroo
Clave cincoo seix
siete 7
ocho 8
=======================
output:
=======================
# uno dos tres Clave cuatro cinco seis
siete
ocho
=======================
# uno dox trex cuatroo Clave cincoo seix
siete 7
ocho 8
=======================
see?, easy, I just want to join the line that
begins with "Clave" at the end of the previous
one that begins with "#" in a ms-dos environment
using awk, grep or sed.
Do I delete the EndOfLine of "#" line or do I
put both lines in variables and then join them, or what?
thanks for your help >=]
kevin
i know its very simple but im stuck in it... =/
input:
=======================
# uno dos tres
Clave cuatro cinco seis
siete
ocho
=======================
# uno dox trex cuatroo
Clave cincoo seix
siete 7
ocho 8
=======================
output:
=======================
# uno dos tres Clave cuatro cinco seis
siete
ocho
=======================
# uno dox trex cuatroo Clave cincoo seix
siete 7
ocho 8
=======================
see?, easy, I just want to join the line that
begins with "Clave" at the end of the previous
one that begins with "#" in a ms-dos environment
using awk, grep or sed.
Do I delete the EndOfLine of "#" line or do I
put both lines in variables and then join them, or what?
thanks for your help >=]
kevin