Seconded on it being a quoting issue. In general when you've got something harry like this that's going to get passed through several shells it's best to stick the part that needs quoting in its own script on the remote side. Then you simply run that script rather than trying to divine how many different layers of backwhacks and quotes and double quotes (and tigers and bears oh my . . .) you need.
(And you probably also should consider getting a new sysadmin to replace whomever's still got the r-services enabled on machines; but that's neither here nor there . . .)
In reply to Re^2: substituting a regular expression in a file
by Fletch
in thread substituting a regular expression in a file
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |