HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Getting a Grip on GNU grep | Hacker News Reader
Getting a Grip on GNU grep
linux.com
10 points
·
obsaysditto
·
·
2 comments
Open article
Save
View on HN
bnoordhuis
·
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.
davnola
·
Before you invest time in grep, take a look at ack-grep
http://betterthangrep.com/
.
ack-grep --thppt
Reply on news.ycombinator.com