comparison bin/quotes @ 122:d7dad74b8909

<elliott> run rm bin; mv test bin
author HackBot
date Thu, 22 Mar 2012 19:17:56 +0000
parents e037173e0012
children ad85e082af96
comparison
equal deleted inserted replaced
121:8a04b0258775 122:d7dad74b8909
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