How to pick a random element from the output of a command?
9
votes
4
answers
11984
views
If I have something like:
echo 1 2 3 4 5 6
or
echo man woman child
what do I have to put behind the pipe to pick out one element of
1 2 3 4 5 6
or man woman child
?
echo 1 2 3 4 5 6 | command
3
Asked by Abdul Al Hazred
(27610 rep)
Mar 13, 2016, 12:14 AM
Last activity: Jun 5, 2025, 08:03 AM
Last activity: Jun 5, 2025, 08:03 AM