TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Getting a Grip on GNU grep

10 pointsby obsaysdittoalmost 15 years ago

2 comments

bnoordhuisalmost 15 years ago
From TFA:<p><pre><code> grep '[[:punct:]]$' files </code></pre> 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.
davnolaalmost 15 years ago
Before you invest time in grep, take a look at ack-grep <a href="http://betterthangrep.com/" rel="nofollow">http://betterthangrep.com/</a>.<p><pre><code> ack-grep --thppt</code></pre>