CNDEV
CNDEV.ORG
当前在线
论坛
CBD
程序员情感CBD
程序员见面交流会
CBD开发区
Java/J2ME
.NET/C#
数据库
Delphi/BCB
Visual C
其它
修真养身
中国象棋
纪念日
谈钱太俗,还是投机吧
听音乐
iCosta
资源共享
一隅
好文共赏
看电影看美剧
待定
狗屎
雪域召唤
工作流
专业显摆区
语录
情感
批评与自我批评
爱情故事
发牢骚
看三点区
游戏
CNDEV-CS/WOW
浩宇长空
生活
家有XPH
我爱学英语
美食天地ORG
半调子体育迷
观澳园友邻
搞笑奇文
拍照片
我读书我存在
论坛系统
超级垃圾站
系统建议及BUG
系统测试
中国开发网
: 论坛:
程序员情感CBD
: 贴子 292399
老玉米
:
虽然说了和没说一样,但是还是谢谢阿
[阅读: 350] 2006-03-08 01:17:13
<空>
相关信息:
unix shell Q: How to filter a special line and a number of lines below it.
(829字)
(
老玉米
[660]
2006-03-07 09:51
)
Can sed do such kind of thing?
(空) (
老玉米
[342]
2006-03-07 09:53
)
if u just want the lines have the keyword,grep is ok,if u want to find the line and get a ……
(空) (
wind_mark
[377]
2006-03-07 12:35
)
i don't know the limitation of the title
(空) (
wind_mark
[375]
2006-03-07 12:39
)
if u just want the lines have the keyword,grep is ok,if u want to find the line and get a ……
(148字)
(
wind_mark
[453]
2006-03-07 12:36
)
????grep is not right tool to resolve my question..
(54字)
(
老玉米
[361]
2006-03-08 01:10
)
虽然说了和没说一样,但是还是谢谢阿
(空) (
老玉米
[349]
2006-03-08 01:17
)
那就再说清楚一些
(148字)
(
wind_mark
[433]
2006-03-08 02:18
)
I cannot undetstand what you mean
(20字)
(
holly
[361]
2006-03-08 01:58
)
Ok..就是要根据过滤条件,过滤出文本中的一些行和紧跟这些后面的n行。。
(66字)
(
老玉米
[403]
2006-03-08 02:03
)
简单的shell不行,awk可以,perl也是可以的
(空) (
leejd
[361]
2006-03-08 02:20
)
我觉得sed也有可能可以。。。perl不考虑。。
(15字)
(
老玉米
[373]
2006-03-08 02:36
)
grep is enough
(60字)
(
holly
[378]
2006-03-08 02:36
)
in aix...I don't wanna install gnu grep in aix..Another option?
(空) (
老玉米
[333]
2006-03-08 02:49
)
lazy corn
(113字)
(
holly
[381]
2006-03-08 02:59
)
If the logic is more complicated ,maybe I need a more powerful tool..
(134字)
(
老玉米
[402]
2006-03-08 03:07
)
I don't think you need the gnu tools
(331字)
(
wind_mark
[481]
2006-03-09 01:03
)
great,,thanks..
(空) (
老玉米
[312]
2006-03-09 01:11
)
aix的grep没有这些选项的
(空) (
wind_mark
[434]
2006-03-08 04:06
)
是老玉米的马甲还是co-worker?
(空) (
holly
[347]
2006-03-08 12:43
)
本人从不使用马甲
(空) (
老玉米
[277]
2006-03-08 14:56
)
我从来不用马甲,在老cndev时就在了的,不过我是职业潜水员
(空) (
wind_mark
[407]
2006-03-09 00:51
)
grep pattern\n^.*\n^.*\n^.*\n^.*\n^.*\n^.*\n
(空) (
品雪
[351]
2006-03-08 02:40
)
hoho, try this way...
(101字)
(
wind_mark
[345]
2006-03-08 09:59
)
结果不对。。
(空) (
老玉米
[309]
2006-03-09 02:00
)
把命令和文档贴上来
(空) (
wind_mark
[355]
2006-03-09 02:04
)
算了,多谢了。正在学习sed
(48字)
(
老玉米
[412]
2006-03-09 02:10
)
第1个命令是把文档分成两半,第2个命令取文档后半部分的前3行,应该没错的,pattern不能用ktlccond.cpp,要用也要用ktlccond\.cpp
(26字)
(
wind_mark
[626]
2006-03-09 02:23
)
u just get the first occurrence..
(空) (
老玉米
[353]
2006-03-09 02:30
)
"$"means the end of file, so '/ktlccond/,$p' means print from the first "ktlccond" to the ……
(160字)
(
wind_mark
[393]
2006-03-09 02:40
)
RPWT
(空) (
wind_mark
[325]
2006-03-09 02:50
)
欢迎光临本社区,您还没有登录,不能发贴子。请在
这里登录