view bin/quotes @ 2968:38e338e5dd5f

<Bike> pastelogs dick|fuck|shit|stack
author HackBot
date Tue, 28 May 2013 21:37:41 +0000
parents e037173e0012
children ad85e082af96
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 -n 1; fi