Hacker News new | ask | show | jobs
by ComputerGuru 2765 days ago
No, like this:

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

echo -e 'one\ntwo\nthree' | sed -ze 's/\n/|/g'
Hey, thanks for teaching me that!