SED not working on remote server
Hi All,
I have a file 'test.sh' on a remote server that contains sed command:
NEWSCRIPTDIR=`echo $SCRIPTDIR | sed 's:'$IAP_BATCH_PATH':'$IAP_DATA_PATH':'`
I am executing this script from another server by doing ssh:
ssh @server /path/test.sh
However, the sed command in test.sh script is not replacing the string and throwing the error "sed: -e expression #1, char 0: no previous regular expression line 17: /COMMON/envParams.sh: No such file or directory"
When i execute the test.sh script on the remote server itself,the sed command is working fine.
kindly assist.
Last edited by SunitaManju; 04-02-2019 at 01:14 AM.
|