annotate bin/addquote @ 1873:2fec55699b70

<Jafet> sed -ie \'3 s,.*,if ! expr "$id" ">=" 0 "\\&" "$id" "<" $(wc -l <quotes) >/dev/null; then id=$(expr $RANDOM % $(wc -l <quotes); fi,\' bin/delquote
author HackBot
date Sun, 27 Jan 2013 04:45:15 +0000
parents c091565553db
children 1c1429d055bc
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 [ "$1" ] || exit 1
e037173e0012 Initial import.
HackBot
parents:
diff changeset
3 printf "%s\n" "$1" >>quotes
1497
c091565553db <elliott> revert 1492
HackBot
parents: 1493
diff changeset
4 printf "%d) %s" $(qc | cut -d' ' -f1) "$1"