# HG changeset patch # User HackBot # Date 1349385653 0 # Node ID ae1e95df9af4d09d16735b858d6a0ee6834a2147 # Parent 9869cf695ce1658ca5acd8ea0c211f240f7628f9 run cp bin/addquote bin/addquote_; sed -ie 's/echo/printf "%d) %s"/;s/") / "/' bin/addquote; cat bin/addquote diff -r 9869cf695ce1 -r ae1e95df9af4 bin/addquote --- a/bin/addquote Thu Oct 04 21:07:26 2012 +0000 +++ b/bin/addquote Thu Oct 04 21:20:53 2012 +0000 @@ -1,4 +1,4 @@ #!/bin/sh [ "$1" ] || exit 1 printf "%s\n" "$1" >>quotes -echo $(qc | cut -d' ' -f1)") $1" +printf "%d) %s" $(qc | cut -d' ' -f1) "$1" diff -r 9869cf695ce1 -r ae1e95df9af4 bin/addquote_ --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/addquote_ Thu Oct 04 21:20:53 2012 +0000 @@ -0,0 +1,4 @@ +#!/bin/sh +[ "$1" ] || exit 1 +printf "%s\n" "$1" >>quotes +echo $(qc | cut -d' ' -f1)") $1" diff -r 9869cf695ce1 -r ae1e95df9af4 bin/addquotee --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/addquotee Thu Oct 04 21:20:53 2012 +0000 @@ -0,0 +1,4 @@ +#!/bin/sh +[ "$1" ] || exit 1 +printf "%s\n" "$1" >>quotes +echo $(qc | cut -d' ' -f1)") $1"