From d367cd8d7523a2f744093babb5ebe1e0a2bb8f0e Mon Sep 17 00:00:00 2001 From: Riccardo Attilio Galli Date: Fri, 13 May 2022 23:19:49 -0700 Subject: [PATCH] Add more examples to README --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e08e87..9025819 100644 --- a/README.md +++ b/README.md @@ -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).