Mercurial > repo
view bin/quotes @ 5131:96373b259c9e
<b_jonas> echo $\'#!/usr/bin/perl\\n\'\'sub k{my$t;$t=~y/IVXLC/XLCDM/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$r{$t}=$_;$t}print k((shift=~/(\\w+)/)[0]),$/\' > bin/toroman && chmod a+x bin/toroman
author | HackBot |
---|---|
date | Fri, 14 Nov 2014 21:30:18 +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