4 ms·
Like so? % echo 'one\ntwo\nthree' | sed -e 's,$, four,' one four two four three four
by jfhufl 8y ago
Like so?
% echo 'one\ntwo\nthree' | sed -e 's,$, four,'
one four
two four
three four
- ComputerGuru 8y agoNo, like this: > echo ‘one\ntwo\nthree’ | tr \n \| one|two|three
- Tepix 8y agoecho -e 'one\ntwo\nthree' | sed -ze 's/\n/|/g'
- ComputerGuru 8y agoHey, thanks for teaching me that!