I have a bash file processing some CSVs. Some of the input CSVs are not formatted properly, so I want to fix them with sed. The quotes are escaped like `\"` and not like `""`, so I call sed to change this. In the command line this works perfectly:

```
sed -i 's/\\"/""/gi' input.csv

```

But inside a bash script this seems to do nothing. I guess it has something to do with quotes and escape sequences, but what is the solution?