in reply to One-liner to fix LaTeX quotation marks
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"'.
Sorry if my advice was wrong.
|
---|
In Section
Seekers of Perl Wisdom