Mercurial > repo
annotate bin/delquote @ 956:82a876c32fa3
<coppro> delquote 325
author | HackBot |
---|---|
date | Sat, 08 Dec 2012 06:39:55 +0000 |
parents | cb4e90411d82 |
children | d70bcf1800e0 |
rev | line source |
---|---|
0 | 1 #!/bin/sh |
2 id=$1 | |
3 expr "$1" + 0 >/dev/null 2>&1 || exit 1 | |
4 head -n $((id-1)) quotes >quotes.new | |
5 tail -n +$((id+1)) quotes >>quotes.new | |
6 diff quotes quotes.new >/dev/null && exit 1 | |
752
cb4e90411d82
<fizzie> run sed -ie 's/echo "\*poof\*/printf "*poof*%s" "/' bin/delquote
HackBot
parents:
0
diff
changeset
|
7 printf "*poof*%s" "$(quote $id | cut -d')' -f2-)" |
0 | 8 mv quotes.new quotes |
9 |