Mercurial > repo
view bin/delquote @ 1371:ec127bcc5f54
<GreyKnight> addquote <Bike> the idea is that you can get the information you need from reading the other players, isn\'t it [...] <Bike> and of course, reading isn\'t limited to facial expressions [...] <fizzie> That\'s true, you can read e.g. books.
author | HackBot |
---|---|
date | Fri, 11 Jan 2013 12:02:23 +0000 |
parents | ee2e8950bb3c |
children | 48427dffea8d |
line wrap: on
line source
#!/bin/sh id=$1 expr "$1" + 0 >/dev/null 2>&1 || exit 1 head -n $((id-1)) quotes >quotes.new tail -n +$((id+1)) quotes >>quotes.new diff quotes quotes.new >/dev/null && exit 1 printf "*poof*%s" "$(quote $id | cut -d')' -f2-)" mv quotes.new quotes