Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(sed): document sed syntax, quoting, and escaping slash (#170)
No change to logic, only docs. This documents the special sed syntax (ex. `shx sed s/foo/bar/g filename.txt`). With that, this mentions that `/` is a special character, so the user must escape that if it's present in either the regex or replacement string. This also documents how Windows handles single quotes differently, so it's desirable to avoid single quotes in package.json scripts. This part isn't specific to sed, but since it's popular to quote sed expressions, I'm adding this to the docs at the same time. Fixes #165 Fixes #169
- Loading branch information