环境
ubuntu 14.04 64bit
vim
包含大量rn的文本
问题描述
text1:
ssh_connect: needpriv 0 \r\n debug1: Connecting to 192.168.10.130 [192.168.10.130]
port 22. \r\n debug2: fd 3 setting O_NONBLOCK \r\n debug1: fd 3 clearing
O_NONBLOCK \r\n debug1: Connection established. \r\ ndebug3: timeout: 10000 ms
remain after connect\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: identity file
......
说明:上面摘自错误输出,阅读起来很不友好。因为包含大量的\r\n(我用空格标记了),我把他们复制粘帖到vim,atom,gedit上\r\n都不会转换为换行效果。现在我想让\r\n转换成换行效果,如下:
ssh_connect: needpriv 0
debug1: Connecting to 192.168.10.130 [192.168.10.130]port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 10000 ms
remain after connect
debug1: permanently_set_uid: 0/0
debug1: identity file
请问大家有什么好的办法
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。