3 ms·
The newline replacement stopped me in my tracks: sed ':a;N;$!ba;s/\n/,/g' Nobody does that with sed, when there are way simpler alternatives, like paste and
by sudahtigabulan 1y ago
The newline replacement stopped me in my tracks:
sed ':a;N;$!ba;s/\n/,/g'
Nobody does that with sed, when there are way simpler alternatives, like paste and tr.