Mercurial > repo
view bin/quote @ 4294:1f6f62cf90e3
<shachaf> echo >bin/rnooodl \'perl -pe \'\\\'\'s/[Nn]ooodl/"\\1@{[o x(3+rand 7)]}dl"/ge\'\\\'
author | HackBot |
---|---|
date | Tue, 14 Jan 2014 01:17:23 +0000 |
parents | 44d4b2e5140d |
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 -n 1; fi