Mercurial > repo
view bin/quote @ 11984:6a3857831cdd draft
<b_jonas> slashlearn discord//The unofficial Esolangs and code golf Discord server: https://discord.gg/3UXSK5p
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 23 Oct 2019 18:38:08 +0000 |
parents | 3e54f8d1843f |
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 --random-source=/dev/urandom -n 1; fi