view bin/addquote @ 1847:3b6a43236f56

<shachaf> > bin/quonoid echo quote monoid; chmod +x bin/quonoid
author HackBot
date Sat, 26 Jan 2013 04:52:22 +0000
parents c091565553db
children 1c1429d055bc
line wrap: on
line source

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