Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select random elements of list #1255

Closed
lloesche opened this issue Nov 3, 2022 · 0 comments
Closed

Select random elements of list #1255

lloesche opened this issue Nov 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@lloesche
Copy link
Member

lloesche commented Nov 3, 2022

Motivation

I often find myself wanting to look at the contents of a random element of a search result. Most of the time I do

search ... | tail -1 | dump

Or the head equivalent, but if I want a third sample I need to copy'paste it from the list output.

Desired Behavior

search ... | random | dump   # returns 1 random element
search ... | random 3 | dump   # returns 3 random elements

Additional Context

No response

@lloesche lloesche added the enhancement New feature or request label Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant