I mean directly operating on the line ending itself. e.g. remove all lines or replace `\n` with the record separator, etc.
% echo 'one\ntwo\nthree' | sed -e 's,$, four,'
one four
two four
three four > echo ‘one\ntwo\nthree’ | tr \n \|
one|two|three