Skip to content

How to exclude the header row(s) from the search? #1950

Discussion options

You must be logged in to vote

ripgrep isn't a tool for parsing CSV, which would be a hard requirement for adding your proposed flag. (A single CSV record can span multiple lines.)

I would recommend using tail if you know your header row is one line. Otherwise, use xsv's slice sub-command and pipe the output to ripgrep.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@datatraveller1
Comment options

@BurntSushi
Comment options

@datatraveller1
Comment options

Answer selected by datatraveller1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants