For some mysterious reason, some elements in my CSV data appear as s/stWgvN52??f2& ?"
instead of stWgvN522tw0JtZZnyXj
, which messes up the file because I have ;
set as the CSV delimiter.
I attempted to replace the defective string using sed
as follows:
$ sed -i 's/stWgvN52??f2& ?"/stWgvN522tw0JtZZnyXj/g' file.csv
but I get the following error: sed: 1: "access_logs_2014-04.csv": command a expects \ followed by text
What is the reason?