comparison bin/quote @ 9075:c989a1669243

<fizzie> revert 58b9ee8f97a7
author HackBot
date Sun, 25 Sep 2016 20:31:46 +0000
parents e037173e0012
children 797fb6694b97 3e54f8d1843f
comparison
equal deleted inserted replaced
9074:560a73f4f0a4 9075:c989a1669243
1 #!/bin/sh
2 allquotes | if [ "$1" ]; then
3 if expr "$1" + 0 >/dev/null 2>&1; then
4 sed "$1q;d"
5 else
6 grep -P -i -- "$1"
7 fi
8 else shuf -n 1; fi