Friday, January 29, 2016
Getting Random Line Number -1
Bash line to generate random line number from 1 to max - 1.
echo $(ruby -e 'print rand') $(wc -l < "./lines.txt") | awk '{printf("%d\n", $1*$2)}'
Newer Post
Older Post
Home