How to exclude the header row(s) from the search? #1950
Answered
by
BurntSushi
datatraveller1
asked this question in
General
-
I want to search only in the data rows (beginning with line number 2) of a CSV file excluding the first header row. |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Jul 25, 2021
Replies: 1 comment 3 replies
-
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 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
datatraveller1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.