in reply to Re: Inserting a single-quote into a file
in thread Inserting a single-quote into a file
perl -pi.orig -e 's/ where/'' where/g' *.sql
That's just plain stupid. It's a inconvenient way of writing
and that's clearly not what the poster intended. One could of course in this case switch to double quotes as the shell quotes, but that's not a general solution. The following is:perl -pi.orig -e 's/ where/ where/g' *.sql
and this works too:perl -pi.orig -e 's/ where/'"'"'where/g' *.sql
perl -pi.orig -e 's/ where/'\''where/g' *.sql
Abigail
|
|---|