Like so?
% echo 'one\ntwo\nthree' | sed -e 's,$, four,'
one four
two four
three four % echo 'one\ntwo\nthree' | sed -e 's,$, four,'
one four
two four
three four > echo ‘one\ntwo\nthree’ | tr \n \|
one|two|three