Mercurial > repo
view bin/delquotee @ 988:d61a9d60775a
<shachaf> ghc -hide-package base -package haskell98 zalgo.hs -o zalgo
author | HackBot |
---|---|
date | Sun, 09 Dec 2012 08:15:14 +0000 |
parents | cb4e90411d82 |
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 echo "*poof*$(quote $id | cut -d')' -f2-)" mv quotes.new quotes