Replace all double quotes with single quotes
You need to pass the g
flag to sed
:
sed "s/\"/'/g"
You could use tr
here, concise and less of quoting headache:
tr '"' "'"
This might work for you:
sed -i "y/\"/'/" hello.txt
-i
option is used to edit in place on the file hello.txt.