Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
Distributions
›
Ubuntu
›
Fedora
›
CentOS
中文资源站
›
网易开源镜像站
V2EX
›
Linux
请教 sed 怎么去除 Linux 文本的换行符号?
sjmcefc2
·
May 6, 2018
· 4490 views
This topic created in 2926 days ago, the information mentioned may be changed or developed.
sed -i 's/\n//g'
这个貌似不行。
sed
换行
Linux
请教
2 replies
1
264768502
May 6, 2018 via Android
不会搜?
https://stackoverflow.com/questions/1251999/how-can-i-replace-a-newline-n-using-sed
2
helloiac
May 7, 2018
sed 是行处理,其处理对象已经是没有换行符的了,处理这种问题不方便。不过有缓存空间的概念,可以读入多行后处理,了解一下吧。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1033 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms ·
UTC 18:28
·
PVG 02:28
·
LAX 11:28
·
JFK 14:28
♥ Do have faith in what you're doing.
❯