X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Frandline;fp=home%2Fbin%2Frandline;h=ccd294f7aa909f8c208c7ca556f1001d472c4331;hb=d061650f1de1e65c1a3dc979834286192bef80f8;hp=0000000000000000000000000000000000000000;hpb=7af1572a011a62980ca75d66af35570b26845548;p=khome.git diff --git a/home/bin/randline b/home/bin/randline new file mode 100755 index 0000000..ccd294f --- /dev/null +++ b/home/bin/randline @@ -0,0 +1,7 @@ +#! /usr/bin/awk -f + +BEGIN {srand()} + +{lines[n++] = $0} + +END {print lines[int(n * rand())]}