view bin/quote @ 9284:ea2fabd7f992

<alercah> learn PSPACE is the complexity class of Problem SPACEs. It is the same as P, by an herbal reduction.
author HackBot
date Fri, 14 Oct 2016 23:55:24 +0000
parents e037173e0012
children 797fb6694b97 3e54f8d1843f
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