3 ms·
I mean directly operating on the line ending itself. e.g. remove all lines or replace `\n` with the record separator, etc.
by ComputerGuru 8y ago
I mean directly operating on the line ending itself. e.g. remove all lines or replace `\n` with the record separator, etc.
- jfhufl 8y agoLike 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!