This is because you can't really escape anything in single quotes in UNIX shell. You have to write the command like this:but something is wrong, the shell wants more input.cat file.txt | perl -pe 's/\"[^[\'\`]/"`/g'
$ perl -pe "s/\"([^'\`])/'\$1/g" This is "an example", but "`this not"'. This is 'an example', but "`this not"'.
In reply to Re: One-liner to fix LaTeX quotation marks
by aitap
in thread One-liner to fix LaTeX quotation marks
by tim_the_monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |