Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Trying to find missing closing quotes in CSV

by Tux (Abbot)
on Sep 16, 2013 at 16:22 UTC ( #1054311=note: print w/replies, xml ) Need Help??


in reply to Trying to find missing closing quotes in CSV

Install (and use) Text::CSV_XS and its utilities:

$ csv-check test.csv # CSV_XS ERROR: 2027 - EIQ - Quoted field not terminated @ rec 1 pos 3 +6 Checked test.csv with csv-check 1.5 using Text::CSV_XS 1.01 test.csv line 3/36 - 2027 - EIQ - Quoted field not terminated

Depending on how well/bad the CSV is formatted, some extra junk may surface


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: Trying to find missing closing quotes in CSV
by spstansbury (Monk) on Sep 16, 2013 at 18:04 UTC
    Thanks very, very much for the pointer to csv-check.pl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2016-10-01 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (6 votes). Check out past polls.