I have a file called \"test.txt\" like that:
hello world
it is, just a \'hello world\' string. If I use a perl regex:
perl -pe
perl accepts the parameter -i for inplace. With this, you can process a file with a perl program and immediately have it written back.
perl
-i