Skip to content

^M carriage return in logs, dti row #317

Open
@nayrnet

Description

@nayrnet

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

Screen Shot 2021-02-23 at 6 33 13 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions