Re: "The rows are not all the same number of columns."

From: William Denton <wtd_at_nyob>
Date: Mon, 16 Jan 2023 20:06:43 -0500
To: CODE4LIB_at_LISTS.CLIR.ORG
On 16 January 2023, William Denton wrote:

> $ while read line; do echo $line | tr -dc "," | wc -m; done < foo.csv > 
> counts.csv
> $ grep -v 2 -c counts.csv

Augh, I meant this, showing line 3 has the problem:

$ grep -v 2 -n counts.csv
3:3



Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 419.29 ppm (Mauna Loa Observatory, 2023-01-15)
Received on Mon Jan 16 2023 - 19:36:52 EST