On 21.02.2023 02:35, spender wrote:
> 在 2013/3/16 3:31, peter sands 写道:
^^^^^^^^^^^
>> Hello,
>>
>> I have a text file where I need to get rid of a repeating control
>> character, I have tried sed and tr but not getting the results I expect.
>> The text file is as an example:
>> [...]
>
> USE sed command , find and replace: sed -n ':a;N;$!ba;s/\n\r\r\n/\n/g'
> filename
After these 10 years that passed since his post I suppose that peter
sands could have even carved the duplicate control characters out of
marble using a chisel instead of sed.
Janis