I have CSV file which is having more than 100K records (File size is 50mb). When I am importing data from CSV to Sqlite3 Database getting errors saying "expected 43 columns of data but found 78".
The reason I found was, CSV file has some invalid characters. (Refer Screenshot)
Please help me to remove invalid characters from CSV file using "Linux Sed Command"
I need to modify this command with sed command to remove invalid characters.
sqlite3 /path_to_db/date_sqlite.db
"<<EOS"
.separator '|'
.import /path_to_data_file/data_log_filr tbl_sqlite_data EOS