fixinventory icon indicating copy to clipboard operation
fixinventory copied to clipboard

Select random elements of list

Open lloesche opened this issue 2 years ago • 0 comments

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 avatar Nov 03 '22 11:11 lloesche