Mercurial > repo
view bin/quotes @ 300:24b23df645d3
<elliott> addquote <kmc> i saw Godspeed You! Black Emperor live <kmc> it is hard to tell when the soundcheck ends and the set begins
author | HackBot |
---|---|
date | Wed, 25 Apr 2012 13:38:05 +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