2022-02-14 02:22:51 +00:00
|
|
|
---
|
|
|
|
title: size
|
|
|
|
layout: command
|
2022-03-04 12:10:09 +00:00
|
|
|
version: 0.59.1
|
2022-02-14 02:22:51 +00:00
|
|
|
---
|
2019-11-10 09:11:23 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
Gather word count statistics on the text.
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> size ```
|
2019-11-10 09:11:23 +00:00
|
|
|
|
2020-06-23 18:21:47 +00:00
|
|
|
## Examples
|
2019-11-10 09:11:23 +00:00
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
Count the number of words in a string
|
2019-11-10 09:11:23 +00:00
|
|
|
```shell
|
2022-02-14 02:22:51 +00:00
|
|
|
> "There are seven words in this sentence" | size
|
2020-06-23 18:21:47 +00:00
|
|
|
```
|
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
Counts Unicode characters correctly in a string
|
2020-06-23 18:21:47 +00:00
|
|
|
```shell
|
2022-02-14 02:22:51 +00:00
|
|
|
> "Amélie Amelie" | size
|
2019-11-10 09:11:23 +00:00
|
|
|
```
|