top | item 18484037

(no title)

jfhufl | 7 years ago

Like so?

    % echo 'one\ntwo\nthree' | sed -e 's,$, four,'
    one four
    two four
    three four

discuss

order

ComputerGuru|7 years ago

No, like this:

    > echo ‘one\ntwo\nthree’ | tr \n \|
    one|two|three

Tepix|7 years ago

echo -e 'one\ntwo\nthree' | sed -ze 's/\n/|/g'