view bin/addquote @ 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 e037173e0012
children d70bcf1800e0
line wrap: on
line source

#!/bin/sh
[ "$1" ] || exit 1
printf "%s\n" "$1" >>quotes
printf "%d) %s" $(qc | cut -d' ' -f1) "$1"