annotate bin/quotes @ 5956:685e004a3372

<fizzie> ` sed -i -e \'s/perl/perl -CSDA/\' bin/thanks
author HackBot
date Sat, 05 Sep 2015 16:56:23 +0000
parents e037173e0012
children ad85e082af96
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e037173e0012 Initial import.
HackBot
parents:
diff changeset
1 #!/bin/sh
e037173e0012 Initial import.
HackBot
parents:
diff changeset
2 allquotes | if [ "$1" ]; then
e037173e0012 Initial import.
HackBot
parents:
diff changeset
3 if expr "$1" + 0 >/dev/null 2>&1; then
e037173e0012 Initial import.
HackBot
parents:
diff changeset
4 sed "$1q;d"
e037173e0012 Initial import.
HackBot
parents:
diff changeset
5 else
e037173e0012 Initial import.
HackBot
parents:
diff changeset
6 grep -P -i -- "$1"
e037173e0012 Initial import.
HackBot
parents:
diff changeset
7 fi
e037173e0012 Initial import.
HackBot
parents:
diff changeset
8 else shuf -n 1; fi