由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 关于 unix sed 命令的疑问
相关主题
make dist 是什么命令阿,能否举个例子有人对totalview熟吗?
急问:undo DOS 命令 (转载)Java调试除了jdb还有啥更好用的?
这两个CVS命令有什么区别? (转载)excel里的命令找不到
如何用’sed‘ comment out 某一行。[合集] 我来问一个matlab的弱问题
没有java命令怎么执行jar文件阿? (转载)angular/sqlite:如何从第一次query的结果中取出最后一个entry ?
Intel C++ compiler 求教*** help needed! on MATLAB GUI ***
Shell  sed 命令替换功能的疑问how to use make file in Visual c++
在线问一个qsub的问题。how to find the date of today in UNIX?
相关话题的讨论汇总
话题: matches话题: 02468话题: sed
进入Programming版参与讨论
1 (共1页)
f********o
发帖数: 863
1
请问:黄框中的命令为什么产生那样的结果!想了半天也没有想明白!(红框中是源数据)
E*V
发帖数: 17544
2
it is what you should expect
^[0-9]*
matches 0 or more
[02468] matches once
so
123 andy matches
since 1 matches ^[0-9]
2 matches [02468]

数据)

【在 f********o 的大作中提到】
: 请问:黄框中的命令为什么产生那样的结果!想了半天也没有想明白!(红框中是源数据)
f********o
发帖数: 863
3
Thank you !

【在 E*V 的大作中提到】
: it is what you should expect
: ^[0-9]*
: matches 0 or more
: [02468] matches once
: so
: 123 andy matches
: since 1 matches ^[0-9]
: 2 matches [02468]
:
: 数据)

1 (共1页)
进入Programming版参与讨论
相关主题
how to find the date of today in UNIX?没有java命令怎么执行jar文件阿? (转载)
[转载] Unix/Posix system programming trainingIntel C++ compiler 求教
isinf 问题Shell  sed 命令替换功能的疑问
我心目中的编程高手在线问一个qsub的问题。
make dist 是什么命令阿,能否举个例子有人对totalview熟吗?
急问:undo DOS 命令 (转载)Java调试除了jdb还有啥更好用的?
这两个CVS命令有什么区别? (转载)excel里的命令找不到
如何用’sed‘ comment out 某一行。[合集] 我来问一个matlab的弱问题
相关话题的讨论汇总
话题: matches话题: 02468话题: sed