view bin/quote @ 10100:b5fb9101f719

<moonythedwarf> le//rn moon//moon is often named the following: moonythedwarf moonythehuman moonheart08 moony moon__ computing and luxon, making porthellos a real pain
author HackBot
date Thu, 05 Jan 2017 19:40:27 +0000
parents 3e54f8d1843f
children
line wrap: on
line source

#!/bin/sh
allquotes | if [ "$1" ]; then
    if expr "$1" + 0 >/dev/null 2>&1; then
        sed "$1q;d"
    else
        grep -P -i -- "$1"
    fi
else shuf --random-source=/dev/urandom -n 1; fi