Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 2
    grep '1[0-9][0-9]\|200' ? Commented Jun 22, 2015 at 11:59
  • Why you need the sign \ ? Commented Jun 22, 2015 at 12:02
  • 1
    And thank you!!! I did not think about this option :) Commented Jun 22, 2015 at 12:03
  • So it is not interperetted as a literal | and instead is seen as the or operator. And no problem, glad you got it sorted :) Commented Jun 22, 2015 at 12:03
  • What grep implementation is that? With GNU grep, that would search with byte offset the xclock word in the file called [1-2][0-9][0-9]. With all other grep implementations that I know, it would search for xclock in the -bw and [1-2][0-9][0-9] files. Commented Jun 22, 2015 at 13:13