Right, so in a Bash script I have the following line:
sed -i 's/$/,"123456","789101112","0001",'"$THEDATE"',"DDX"/' /tmp/tmp02.csv
However, whenever I run it I always get the error
sed: -e expression #1, char 42: unknown option to `s'
I think it's the variable bit, but however I do it it won't seem to escape the double quotes.. Any help greatly appreciated!