sed command to beautify output of an awk command -
i have following output awk command..i want beautify output follows..is there sed command give me expected output?
current output:- https://code-comp.com/308271 (there white space line here) https://code-comp.com/308270 466197 https://code-comp.com/308263 470188 https://code-comp.com/308262 https://code-comp.com/308261 following expected output
expected output:- https://code-comp.com/308271 https://code-comp.com/308270 466197 https://code-comp.com/308263 470188 https://code-comp.com/308262 https://code-comp.com/308261
this might work (gnu sed):
sed -r ':a;$!n;/\nhttps:/!{s/\n/ /;ta};s/\s*(\n|$)/\1/;p;d' file
Comments
Post a Comment