Hi
I have 2 regex codes:
This works:
This does not work:
The only difference is the -pi versus -p -i.
The -pi version seems to work for other substitutions, just not this one. The only difference there is this is enclosed in double quotes (so that I can use the \').
Can somebody explain why one works and the other does not?
Thanks
Mike
I have 2 regex codes:
This works:
Code:
perl -e "s/\&\#39\;/\'/g" -p -i file.txt
This does not work:
Code:
perl -e "s/\&\#39\;/\'/g" -pi file.txt
The only difference is the -pi versus -p -i.
The -pi version seems to work for other substitutions, just not this one. The only difference there is this is enclosed in double quotes (so that I can use the \').
Can somebody explain why one works and the other does not?
Thanks
Mike