sed is the canonical paragraph mangler. It's worth spending a bit to grok how that is true.
tr -d '\r' | sed '/^$/!{H;d;};p;x;s/\n/ /g;' Gutenberg lines are CRLF-terminated so `tr` is needed.
sed is the canonical paragraph mangler. It's worth spending a bit to grok how that is true.
tr -d '\r' | sed '/^$/!{H;d;};p;x;s/\n/ /g;' Gutenberg lines are CRLF-terminated so `tr` is needed.