changeset 2260:b3ba00b1eb3b

<Jafet> rm bin/pastelog...
author HackBot
date Tue, 26 Feb 2013 18:03:47 +0000
parents 2dc4987678e3
children b8b9d8f3cb6b
files bin/pastelog...
diffstat 1 files changed, 0 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/bin/pastelog...	Tue Feb 26 18:03:10 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-#!/bin/sh
-cd /var/irclogs/_esoteric
-
-pasterandom() {
-    if [ "$1" -gt 150 ]; then
-        echo "No."
-        exit
-    fi
-    for i in $(seq "$1"); do
-        file=$(shuf -en 1 ????-??-??.txt)
-        echo "$file:$(shuf -n 1 $file)"
-    done | paste
-}
-
-if [ "$1" ]; then
-    if expr "$1" + 0 >/dev/null 2>&1; then
-        pasterandom "$1"
-    else
-        lines=$(grep -P -i -- "$1" ????-??-??.txt | head -n 301)
-        {
-            echo "$lines" | head -n 300
-            [ $(echo "$lines" | wc -l) -eq 301 ] && echo "[too many lines; stopping]"
-        } | paste
-    fi
-else
-    pasterandom 40
-fi
-