sed:print:print_a_random_line
This is an old revision of the document!
SED - Print - Print a random line
sed -n "$(( RANDOM % 100 ))p" -
NOTE: Equivalent to:
sort -R – | head -1
sed/print/print_a_random_line.1608653081.txt.gz · Last modified: 2020/12/22 16:04 by peter