I\'m trying to replace all double quotes in a string with single quotes. here my expression:
echo \"
You could use tr here, concise and less of quoting headache:
tr
tr '"' "'"
You need to pass the g flag to sed:
g
sed
sed "s/\"/'/g"
This might work for you:
sed "y/\"/'/" file