annotate bin/delquote @ 3362:9e76a5a1ead3
<boily> learn megalun is a chain of a million SCSI devices. FreeFull weighs 482 of them.
author |
HackBot |
date |
Fri, 02 Aug 2013 20:38:19 +0000 |
parents |
7914d7e0b500 |
children |
03afb1619ef2 |
rev |
line source |
0
|
1 #!/bin/sh
|
|
2 id=$1
|
1906
|
3 expr "$1" + 0 >/dev/null 2>&1 || exit 1
|
0
|
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
|
2114
|
7 printf "*poof*%s" "$(quote $id | cut -d')' -f2-)"
|
0
|
8 mv quotes.new quotes
|
|
9
|