Skip to content

Commit

Permalink
Add more examples to README
Browse files Browse the repository at this point in the history
  • Loading branch information
riquito committed May 14, 2022
1 parent 0d9de51 commit d367cd8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,23 @@ ac
```

```sh
# Can split on unicode scalar values (expect UTF-8 encoding)
# Can split on unicode scalar values (it expects UTF-8 encoding)
echo "a𝌆b𝌆c" | tuc -d '𝌆' -f 1,3
ac
```

```sh
# Can split on characters
echo "😁🤩😝😎" | tuc -c 4,3,2,1
😎😝🤩😁
```

```sh
# Can split on bytes (the following emoji are 4 bytes each)
echo "😁🤩😝😎" | ./target/debug/tuc -b 5:8
🤩
```

## LICENSE

Tuc is distributed under the GNU GPL license (version 3 or any later version).
Expand Down

0 comments on commit d367cd8

Please sign in to comment.