Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ComputerGuru
· 8y ago · 0 comments
No, like this:
> echo ‘one\ntwo\nthree’ | tr \n \| one|two|three
Comments
[–]
Tepix
8y ago
echo -e 'one\ntwo\nthree' | sed -ze 's/\n/|/g'
[–]
ComputerGuru
OP
8y ago
Hey, thanks for teaching me that!