由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - How to use sed to add newline character?
相关主题
how to insert a column for all slected rows in emacs (转载)用Python读csv文件header?
vi 一问.onsale的tp单子
error in my function "write_log"科长,这个地址能寄吗, 谢谢
about vi.求关于数据库设计的资料
paste command 里面的 -请教个 interview question
SOSSSS! Passwd file broken问个题目,好像以前有人问过~~~
怎样打印出grep后的部分内容?leetcode似乎c++11支持不完全?
C++ Q13: Input请教一道two sigma的面试题
相关话题的讨论汇总
话题: sed话题: line1话题: newline
进入Unix版参与讨论
1 (共1页)
q****h
发帖数: 1
1
Hi, there:
I'm stuck with a sed question. Could you help me out?
Here is the content of the text file: test.c
line1
line2
text3asdasfasfasftext4
I want to change it to the following format:
line1
line2
text3asdasf
asfasftext4
I try this sed command but it doesn't work:
sed s/\ test
Thanks in advance! Any suggestion is appreciated.
1 (共1页)
进入Unix版参与讨论
相关主题
请教一道two sigma的面试题paste command 里面的 -
分享一道google 面试题。大数据相关。SOSSSS! Passwd file broken
IRS寄信来怎样打印出grep后的部分内容?
J1免税期 W2 line 1 是0, 报税时应该怎么填?C++ Q13: Input
how to insert a column for all slected rows in emacs (转载)用Python读csv文件header?
vi 一问.onsale的tp单子
error in my function "write_log"科长,这个地址能寄吗, 谢谢
about vi.求关于数据库设计的资料
相关话题的讨论汇总
话题: sed话题: line1话题: newline