Mercurial > repo
view paste/paste.13254 @ 7006:458fca97071d
<b_jonas> perl -e-e($o="bin/culprits-ng") and die; open$O,">",$o or die; print $O qq{#!/bin/sh\\n},q{exec hg log -l 512 --template "{desc}\\0" -- "$@" | perl -0ne \'/^<([^>]*)>/ and!$t{$1}++and print"$1 "\'}; close$O;chmod 0755,$o or die;
author | HackBot |
---|---|
date | Thu, 25 Feb 2016 07:17:36 +0000 |
parents | ac59fa54605e |
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