summaryrefslogtreecommitdiff
path: root/local/.local/scripts/quotes
blob: 2009c647f76fcf5cf91134f96b2e56104540502b (plain)
1
2
3
4
5
6
7
#! /bin/bash

SRC_FILE=~/.local/scripts/data/bigBoiQuotes.dat
RIDA=$(shuf -i 1-$[$(cat $SRC_FILE | wc -l)/4] | head -n1 )
QUOTE=$(sed -n $[2*${RIDA}+1]p $SRC_FILE)
QUOTIST=$(sed -n $[2*${RIDA}+2]p $SRC_FILE)
echo $QUOTE $QUOTIST