Quote:
Originally Posted by Nejc
...
The error returned is:
Code:
line 3: syntax error near unexpected token `('
I assume the problem is with the the character '. Am I right? Any ideas how I can fix this?
Thanks
|
It's not only the single quotes
' , but other special characters as well, such as
\ " . , that need to be escaped too, and there are too many of them ..., better use a regex:
Code:
sed "s:<?php echo '<script language='JavaScript'>.*<\\\/script>'; ?>::" file > temp