diff --git a/crates/nu-command/src/strings/split/words.rs b/crates/nu-command/src/strings/split/words.rs index 9046a7bf85..e0cfdb3dcb 100644 --- a/crates/nu-command/src/strings/split/words.rs +++ b/crates/nu-command/src/strings/split/words.rs @@ -71,6 +71,12 @@ impl Command for SubCommand { span: Span::test_data(), }), }, + Example { + description: + "A real-world example of splitting words", + example: "fetch https://www.gutenberg.org/files/11/11-0.txt | str downcase | split words -l 2 | uniq -c | sort-by count --reverse | first 10", + result: None, + }, ] }