This is how I would replace every ‘a’ with ‘b’ using command line:
sed -i 's/a/b/g' test.s
But this is not working when I want to replace every ‘;’ with an ‘//’ sed -i 's/;////g' test.s
So what would the correct regex be for this case?
>Solution :
Try with escaped values:
sed -i 's/\;/\/\//g' test.s