from Hacker News

Getting a Grip on GNU grep

by obsaysditto on 6/10/10, 6:10 PM with 2 comments

  • by bnoordhuis on 6/10/10, 8:06 PM

    From TFA:

      grep '[[:punct:]]$' files
    
    I suspect the author has grep aliased to `egrep` or `grep -E` because [:punct:] is an extended regular expression and GNU grep defaults to basic RE mode.
  • by davnola on 6/10/10, 8:39 PM

    Before you invest time in grep, take a look at ack-grep http://betterthangrep.com/.

      ack-grep --thppt