I have a command which spouts a number of lines to stdout:
$ listall
foo
bar
baz
How do I extract a random entry from this, in a one-liner (preferably without awk) so I can just use it in a pipe:
$ listall | pickrandom | sed ... | curl ...
Thanks!