X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=blobdiff_plain;f=cancel-this;h=bcbefa9b92ebd92f1c035335c54562fc7d0f0164;hp=1009b35e96a473aed0bc74044e3e1fcdcb339d1f;hb=9cc6305df25e5635e003389504922715fc030209;hpb=048aac6382a1cd35c048734907a51e3be5727e42 diff --git a/cancel-this b/cancel-this index 1009b35..bcbefa9 100755 --- a/cancel-this +++ b/cancel-this @@ -1,6 +1,6 @@ #! /bin/sh -MSGID=`grep -i '^Message-ID: ' | sed 's/^Message-ID: //' | head -1` +MSGID=`grep -i '^Message-ID: ' | sed 's/^Message-ID: //' | head -n 1` echo 'Locally cancelling a post with the following Message-ID:' echo " $MSGID"