view paste/paste.25431 @ 9954:fb3529990ed4

<oerjan> ` echo \'121:122 194:196 770:771 1000:1001 1493 1497 2113:2114 3341:3343 4530:4531 5136:5137 5642:5643 5895 5897 8669:8678 9070:9071 9074:9075\' | xargs -n 1 >share/scowrevs
author HackBot
date Mon, 12 Dec 2016 03:24:20 +0000
parents 66ce10869c57
children
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