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*

5
  • i think it should be grep -E 'pattern' inputfile Commented Feb 26, 2013 at 8:15
  • @RahulPatil what is wrong to use Basic Regular Expressions ? for readability reason I could have used that right. But that doesn't help a lot since '{\1}' doesn't give any result still. Commented Feb 26, 2013 at 8:39
  • there are only 10 digits including '0' Commented Feb 26, 2013 at 8:59
  • 1
    @Oddant : Serge is logically correct, either there are only 10 possible cases or there is some token between the first "digit"(s) and the rest, or you are assuming something else about the context but using grep wrongly in your description. Commented Feb 26, 2013 at 9:13
  • @goldilocks please check my update Commented Feb 26, 2013 at 21:08