I'm using Amazon Linux. I'm trying to run a search and replace using sed. I'm running into the below error ...
[jboss@mydevbox nodejs]$ sed -i -e "s/test.smokeTest('(.*?)', '(.*?)', '(.*?)')/test.smokeTest('username', 'password', 'http://localhost:8081/myproject')/g" test.js sed: -e expression #1, char 96: unknown option to `s'
Not sure what I need to do to fix the issue above, only that there's something going on with my use of single quotes and double quotes.
Edit: This is the example file I'm using
//Creates the new browser and Logins in console.log('Validation Complete'); var test = require('./js/Optimus.js'); test.smokeTest('####', '####', 'http://mydomain.com/myproject/');