Have created a simple bash script on windows and tried to execute on Cygwin. Command is replacing tag value from 2013 to 2014 at 17th line in XML file
#!/bin/bash
sed '17 s/<asOf>2013<\/asOf>/<asOf>2014<\/asOf>/' XML_FILE
If i am executing the sed command on cygwin directly, i am able to get the results. But running bash script on cygwin, displayed follwing error:-
sed: -e expression #1, char 3: extra characters after command
Please help me on the same.
No comments:
Post a Comment