Find rows that have a certain string in column 1

csvgrep

  • Filter CSV rows with string and pattern matching.
    Included in csvkit.
    More information: <https://csvkit.readthedocs.io/en/latest/scripts/csvgrep.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

csvgrep -c {{1}} -m {{string_to_match}} {{data.csv}}

click the source code to copy install csvgrep on any operating system with command-not-found.com