News for hackers. Stuff that matters.
Re:Ask HN: Tools you have made for yourself? by Madeindjs on Saturday June 12, 2021 @05:18PM (#27487504)
This can be done using two lines of Bash

- `head -n 1 <file>` to get headers - `wc -l <file>` to count number of rows

Re:Ask HN: Tools you have made for yourself? by mikub on Sunday June 13, 2021 @12:35AM (#27489776)
I was thinking about using bash, but couldn't come up with a solution to use tabcompletion when I'm in a different directory than the CSV file I want the data from, so I don'need to change directory.
Re:Ask HN: Tools you have made for yourself? by gnomewascool on Saturday June 12, 2021 @05:47PM (#27487686)
Not really, not if the CSV contains quoted newlines.