view bin/paste @ 1768:ce59f2644c41

<Jafet> echo -e \'#!/bin/sh\\ntopic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")\\n([ \\( "$topic" = "ngevd" \\) -a \\( -e wisdom/ngevd \\) ] && cat /dev/urandom && exit 0; ) || [ -e "wisdom/$topic" ] || { echo "$1? \xc2\xaf\\(\xc2\xb0_o)/\xc2\xaf"; exit 1; }\\ncat "wisdom/$topic"\' > bin/q
author HackBot
date Fri, 25 Jan 2013 13:21:05 +0000
parents a40d4545807d
children abd74e63cd7a
line wrap: on
line source

#!/bin/bash
if [ ! "$1" ]
then
    PASTE=-
else
    PASTE="$1"
fi

PASTENUM="$RANDOM"

mkdir -p $HACKENV/paste

url paste/paste."$PASTENUM"
cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"