From a16bdfe930d89e1a7fb354b78d16e8742118f76d Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 8 Apr 2023 00:27:03 +0300 Subject: checkers --- local/.local/scripts/quotes | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 local/.local/scripts/quotes (limited to 'local/.local/scripts/quotes') diff --git a/local/.local/scripts/quotes b/local/.local/scripts/quotes new file mode 100755 index 0000000..2009c64 --- /dev/null +++ b/local/.local/scripts/quotes @@ -0,0 +1,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 -- cgit v1.2.3