Open
Description
I'm trying to import this data into a database for view and keep running into this issue and having to fix these lines by hand.. both ^M is being seen as 1 char in a text editor, i can back it out and replace with ^M and its fine afterward.
cat direwolf.log | iconv -f utf-8 -t utf-8 -c | dos2unix -f | sed s/^M// | psql -h localhost -p 5432 -U testuser direwolf -c "COPY logs (chan,utime,isotime,source,heard,level,error,dti,name,symbol,latitude,longitude,speed,course,altitude,frequency,coffset,tone,system,status,telemetry,comment) FROM STDIN DELIMITER ',' CSV HEADER;"
ERROR: unquoted carriage return found in data
HINT: Use quoted CSV field to represent carriage return.
CONTEXT: COPY logs, line 451057
Metadata
Metadata
Assignees
Labels
No labels