view paste/paste.12606 @ 11442:e5fc980ee1e8

<wob_jonas> slashlearn A//A is one of seven villages in Norway. The BBC invented them by not understanding things on top of letters.
author HackBot
date Mon, 05 Mar 2018 22:24:39 +0000
parents 1bca98188e7f
children
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"