mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 23:49:44 +01:00
add another split words example (#6394)
This commit is contained in:
parent
a7295c8f1b
commit
ba6abd77c9
@ -71,6 +71,12 @@ impl Command for SubCommand {
|
|||||||
span: Span::test_data(),
|
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,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user