/ Published in: Bash
Merge line below to current line.
"This one-liner joins two consecutive lines with the "N" command. They get joined with a "\n" character between them. The substitute command replaces this newline with a space, thus joining every pair of lines with a whitespace."
From catonmat here:
http://www.catonmat.net/blog/sed-one-liners-explained-part-one/
"This one-liner joins two consecutive lines with the "N" command. They get joined with a "\n" character between them. The substitute command replaces this newline with a space, thus joining every pair of lines with a whitespace."
From catonmat here:
http://www.catonmat.net/blog/sed-one-liners-explained-part-one/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
sed '$!N;s/\n/ /'