From ba6abd77c9a902238cd6cc9b20162c28f121eb13 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Tue, 23 Aug 2022 13:27:06 -0500 Subject: [PATCH] add another split words example (#6394) --- crates/nu-command/src/strings/split/words.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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, + }, ] }