Grep Flags – The Good Stuff

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • ripgrep

    ripgrep recursively searches directories for a regex pattern while respecting your gitignore

  • ...you beat me to it! RipGrep[0] is among my favorite semi-recently discovered CLI tools.

    [0] - https://github.com/BurntSushi/ripgrep#why-should-i-use-ripgr...

  • learn_gnugrep_ripgrep

    Example based guide to mastering GNU grep and ripgrep

  • >The -I flag only considers text files. This radically speeds up recursive greps.

    I use ripgrep when I need better speed. I've pretty much switched to ripgrep these days, but still use GNU grep when I'm answering questions on stackoverflow, reddit, etc.

    >ABC flags

    Good to also know about `--group-separator` and `--no-group-separator` when there are multiple non-contiguous matches. Helps to customize the separator or remove them altogether. Sadly, these options are still not explained in `man grep` on Ubunutu. You'll have to use `info grep` or the online manual to find them.

    Options I use often that is not mentioned in the article:

    * `-c` to count the number of matches

    * `-F` for fixed string matching

    * `-x` to match whole lines

    * `-P` for PCRE (as mentioned in many comments here)

    * `--color=auto` this is part of command name alias, so it is always used

    I wrote a book as well on "GNU grep and ripgrep": https://github.com/learnbyexample/learn_gnugrep_ripgrep Free to read online.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Ugrep – a more powerful, ultra fast, user-friendly, compatible grep

    27 projects | news.ycombinator.com | 30 Dec 2023
  • Potencializando Sua Experiência no Linux: Conheça as Ferramentas em Rust para um Desenvolvimento Eficiente

    5 projects | dev.to | 12 Dec 2023
  • Be careful of the examples you use. They stick

    2 projects | news.ycombinator.com | 22 Aug 2023
  • sed cheatsheet

    2 projects | /r/linux | 7 Jun 2023
  • Ripgrep with glob patterns doesnot seem to work for me

    2 projects | /r/emacs | 21 Apr 2023