【发布时间】:2013-10-11 13:46:56
【问题描述】:
有没有办法在两组数字之间grep/egrep?
egrep "SomeText [19999-22000]" /some/file.txt
它没有返回值。我期望:
SomeText 19999 ffuuu
SomeText 20001 ffuuu
SomeText 21000 ffuuu
【问题讨论】:
-
这与 SO 无关;属于Super User
-
@JimGarrison Grep 和正则表达式都是 Stack Overflow 上的主题。这就是我们为它们设置标签的原因。