comparison bin/quote @ 977:797fb6694b97

<shachaf> cp bin/quote bin/realquote; echo -n $'#!/bin/sh\nsleep 1\nrealquote "$@"\n' > bin/quote
author HackBot
date Sun, 09 Dec 2012 07:23:28 +0000
parents e037173e0012
children 44d4b2e5140d
comparison
equal deleted inserted replaced
976:b08f43cad394 977:797fb6694b97
1 #!/bin/sh 1 #!/bin/sh
2 allquotes | if [ "$1" ]; then 2 sleep 1
3 if expr "$1" + 0 >/dev/null 2>&1; then 3 realquote "$@"
4 sed "$1q;d"
5 else
6 grep -P -i -- "$1"
7 fi
8 else shuf -n 1; fi