view bin/paste @ 1527:1ef556fc959f

<elliott> addquote <oerjan> fungot knows all. <fungot> oerjan: you are correct. there\'s no freedom for free.
author HackBot
date Tue, 15 Jan 2013 04:17:13 +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"