Mercurial > repo
annotate bin/addquotee @ 800:8970b3fbdfd7
<elliott> delquote 470
author | HackBot |
---|---|
date | Sun, 14 Oct 2012 01:13:29 +0000 |
parents | ae1e95df9af4 |
children |
rev | line source |
---|---|
744
ae1e95df9af4
<fizzie> run cp bin/addquote bin/addquote_; sed -ie 's/echo/printf "%d) %s"/;s/") / "/' bin/addquote; cat bin/addquote
HackBot
parents:
diff
changeset
|
1 #!/bin/sh |
ae1e95df9af4
<fizzie> run cp bin/addquote bin/addquote_; sed -ie 's/echo/printf "%d) %s"/;s/") / "/' bin/addquote; cat bin/addquote
HackBot
parents:
diff
changeset
|
2 [ "$1" ] || exit 1 |
ae1e95df9af4
<fizzie> run cp bin/addquote bin/addquote_; sed -ie 's/echo/printf "%d) %s"/;s/") / "/' bin/addquote; cat bin/addquote
HackBot
parents:
diff
changeset
|
3 printf "%s\n" "$1" >>quotes |
ae1e95df9af4
<fizzie> run cp bin/addquote bin/addquote_; sed -ie 's/echo/printf "%d) %s"/;s/") / "/' bin/addquote; cat bin/addquote
HackBot
parents:
diff
changeset
|
4 echo $(qc | cut -d' ' -f1)") $1" |