annotate bin/addquotee @ 744:ae1e95df9af4

<fizzie> run cp bin/addquote bin/addquote_; sed -ie 's/echo/printf "%d) %s"/;s/") / "/' bin/addquote; cat bin/addquote
author HackBot
date Thu, 04 Oct 2012 21:20:53 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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"