Add install instructions

This commit is contained in:
Gregory 2018-12-26 16:54:59 -05:00 committed by GitHub
parent 33fd7b2bf6
commit 2f22150868
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,12 @@ Some cherry-picked examples, where `sd` shines:
Note: although `sed` does have a nicer regex syntax with `-r`, it is a non-portable GNU-ism and thus doesn't work on MacOS, BSD, or Solaris.
## Installation
```sh
cargo install sd
```
## Quick Guide
1. **String-literal mode**. By default, expressions are treated as regex. Use `-s` or `--string-mode` to disable regex.