Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes sed error with urls using the dash delimiter. #19

Merged
merged 1 commit into from
Nov 12, 2013
Merged

Fixes sed error with urls using the dash delimiter. #19

merged 1 commit into from
Nov 12, 2013

Conversation

darioghilardi
Copy link
Contributor

Fixes #17.

@jabes
Copy link

jabes commented Nov 9, 2013

I was also having issues with sed, albeit not with the delimiter. I had to edit the same line as forked above to this:

sed -i 's/<%= search %>/<%= replace %>/g' <%= path %>

After removing '' following the -i option, it worked fine.
https://github.com/jabes/grunt-deployments/commit/243289d4a26c4d3f462a186fd552dafba78cb6f5#diff-2cb1ad4f3eb0ea704c74a73689ad1654

@getdave
Copy link
Owner

getdave commented Nov 12, 2013

As an FYI to anyone coming across this commit in sed you can use delimiters other than / to mark the beginning and end of the search/replace pattern. One of these chars is the # character as employed here.

http://backreference.org/2010/02/20/using-different-delimiters-in-sed/

getdave added a commit that referenced this pull request Nov 12, 2013
Fixes sed error with urls using the dash delimiter.
@getdave getdave merged commit d8abfef into getdave:develop Nov 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants