annotate bin/delquote @ 4004:c08a49fca968
<mrhmouse> wget http://nodejs.org/dist/v0.10.22/node-v0.10.22-linux-x64.tar.gz -O node.tar.gz
author |
HackBot |
date |
Wed, 13 Nov 2013 16:29:23 +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
|