add another split words example (#6394)

This commit is contained in:
Darren Schroeder 2022-08-23 13:27:06 -05:00 committed by GitHub
parent a7295c8f1b
commit ba6abd77c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},
]
}