Mercurial > repo
annotate bin/addquote @ 12260:6fc381818fc4 draft
<int-e> mkx ../bin/"//allquotes | grep -P -i -- "$1" | shuff -random-source=/dev/urandom -n 2 | sport
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sat, 07 Dec 2019 23:59:00 +0000 |
parents | e1ce00d00682 |
children |
rev | line source |
---|---|
5643 | 1 #!/bin/sh |
2 [ "$1" ] || exit 1 | |
12116
e1ce00d00682
<fizzie> sled /hackenv/bin/addquote//s|quotes|${HACKENV-/hackenv}/quotes|
HackEso <hackeso@esolangs.org>
parents:
5643
diff
changeset
|
3 printf "%s\n" "$1" >>${HACKENV-/hackenv}/quotes |
5643 | 4 printf "%d) %s" $(qc | cut -d' ' -f1) "$1" |