4 ms·
This can be done using two lines of Bash - `head -n 1 <file>` to get headers - `wc -l <file>` to count number of rows
by Madeindjs 5y ago
This can be done using two lines of Bash
- `head -n 1 <file>` to get headers
- `wc -l <file>` to count number of rows
- gnomewascool 5y agoNot really, not if the CSV contains quoted newlines.
- mikub 5y agoI 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.