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